-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (88 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
97 lines (88 loc) · 1.69 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.8'
services:
# SCADA container
scada:
build: ./scada
container_name: scada
networks:
scada_net:
ipv4_address: 192.168.1.20
stdin_open: true
tty: true
depends_on:
- plc
volumes:
- /logs/scada:/logs
# PLC container
plc:
build: ./plc
container_name: plc
networks:
scada_net:
ipv4_address: 192.168.1.10
stage1:
ipv4_address: 192.168.2.10
ports:
- "502:502"
volumes:
- /logs/plc:/logs
# RIO Sensor 1
rio-turbidity:
build: ./rio-turbidity
container_name: rio-turbidity
depends_on:
- plc
networks:
stage1:
ipv4_address: 192.168.2.20
volumes:
- /logs/rio-turbidity:/logs
# RIO Sensor 2
rio-ph:
build: ./rio-ph
container_name: rio-ph
depends_on:
- plc
networks:
stage1:
ipv4_address: 192.168.2.21
volumes:
- /logs/rio-ph:/logs
rio-pressure:
build: ./rio-pressure
container_name: rio-pressure
depends_on:
- plc
networks:
stage1:
ipv4_address: 192.168.2.22
volumes:
- /logs/rio-pressure:/logs
# RIO Actuator
rio_actuator:
build: ./rio-act
container_name: rio_actuator
depends_on:
- plc
networks:
stage1:
ipv4_address: 192.168.2.30
networks:
scada_net:
driver: bridge
ipam:
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1
stage1:
driver: bridge
ipam:
config:
- subnet: 192.168.2.0/24
gateway: 192.168.2.1
stage2:
driver: bridge
ipam:
config:
- subnet: 192.168.3.0/24
gateway: 192.168.3.1