-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 968 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
pc1:
build:
context: .
dockerfile: Dockerfile.pc1
container_name: pc1-sensors-broker
networks:
- traffic-net
depends_on:
pc2:
condition: service_started
environment:
- BROKER_MODE=${BROKER_MODE:-standard}
- SENSOR_INTERVAL=${SENSOR_INTERVAL:-0}
- SENSOR_COUNT=${SENSOR_COUNT:-0}
restart: unless-stopped
pc2:
build:
context: .
dockerfile: Dockerfile.pc2
container_name: pc2-analytics
networks:
- traffic-net
volumes:
- pc2-data:/data
restart: unless-stopped
pc3:
build:
context: .
dockerfile: Dockerfile.pc3
container_name: pc3-monitoring
networks:
- traffic-net
volumes:
- pc3-data:/data
depends_on:
pc2:
condition: service_started
stdin_open: true
tty: true
restart: unless-stopped
networks:
traffic-net:
driver: bridge
volumes:
pc2-data:
pc3-data: