-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
82 lines (73 loc) · 1.51 KB
/
docker-compose.yml
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
version: "3"
services:
# CPS network components
plc1:
image: redclouud/trist:latest
command: bash -c "cd /TRIST && python2 plc1.py"
networks:
TRIST:
ipv4_address: 192.168.1.10
privileged: true
volumes:
- ../:/TRIST
depends_on:
- plc2
- plc3
restart: on-failure
plc2:
image: redclouud/trist:latest
command: bash -c "cd /TRIST && python2 plc2.py"
networks:
TRIST:
ipv4_address: 192.168.1.20
privileged: true
volumes:
- ../:/TRIST
restart: on-failure
plc3:
image: redclouud/trist:latest
command: bash -c "cd /TRIST && python2 plc3.py"
networks:
TRIST:
ipv4_address: 192.168.1.30
privileged: true
volumes:
- ../:/TRIST
restart: on-failure
t101:
image: redclouud/trist:latest
command: bash -c "cd /TRIST && python2 T101.py"
volumes:
- ../:/TRIST
depends_on:
- plc1
- plc2
- plc3
t301:
image: redclouud/trist:latest
command: bash -c "cd /TRIST && python2 T301.py"
volumes:
- ../:/TRIST
depends_on:
- plc1
- plc2
- plc3
data-collector:
image: python:2.7
command: bash -c "cd /TRIST && python2 data_collector.py"
volumes:
- ../:/TRIST
depends_on:
- plc1
- plc2
- plc3
- t101
- t301
restart: on-failure
# Network for container communication
networks:
TRIST:
ipam:
driver: default
config:
- subnet: "192.168.1.0/24"