forked from AlirezaDehlaghi/ICSSIM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·156 lines (141 loc) · 3.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·156 lines (141 loc) · 3.41 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: "3.9"
services:
pys:
build: ics-docker/.
privileged: true
working_dir: /src
entrypoint: ["./start.sh", "FactorySimulation.py"]
container_name: pys
volumes:
- ../src:/src
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
fnet:
ipv4_address: 192.168.1.31
plc1:
build: ics-docker/.
privileged: true
working_dir: /src
entrypoint: ["./start.sh", "PLC1.py"]
container_name: plc1
volumes:
- ../src:/src
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
wnet:
ipv4_address: 192.168.0.11
fnet:
ipv4_address: 192.168.1.11
plc2:
build: ics-docker/.
#stdin_open: true # docker run -i
#tty: true
privileged: true
working_dir: /src
entrypoint: ["./start.sh", "PLC2.py"]
container_name: plc2
volumes:
- ../src:/src
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
wnet:
ipv4_address: 192.168.0.12
fnet:
ipv4_address: 192.168.1.12
hmi1:
build: ics-docker/.
stdin_open: true # docker run -i
tty: true
working_dir: /src
privileged: true
entrypoint: ["./start.sh", "HMI1.py"]
container_name: hmi1
volumes:
- ../src:/src
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
wnet:
ipv4_address: 192.168.0.21
hmi2:
build: ics-docker/.
stdin_open: true # docker run -i
tty: true
privileged: true
working_dir: /src
entrypoint: ["./start.sh", "HMI2.py"]
container_name: hmi2
volumes:
- ../src:/src
networks:
wnet:
ipv4_address: 192.168.0.22
hmi3:
build: ics-docker/.
stdin_open: true # docker run -i
tty: true
privileged: true
working_dir: /src
entrypoint: ["./start.sh", "HMI3.py"]
container_name: hmi3
volumes:
- ../src:/src
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
wnet:
ipv4_address: 192.168.0.23
attacker:
build: attacker-docker/.
stdin_open: true # docker run -i
tty: true
privileged: true
tty: true
working_dir: /src
entrypoint: ["./start.sh", "Attacker.py"]
container_name: attacker
volumes:
- ../src:/src
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
wnet:
ipv4_address: 192.168.0.42
attacker2:
build: attacker-docker/.
stdin_open: true # docker run -i
tty: true
privileged: true
tty: true
working_dir: /src
entrypoint: ["./start.sh", "AttackerMachine.py"]
container_name: attacker-machine
volumes:
- ../src:/src
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
wnet:
ipv4_address: 192.168.0.41
networks:
wnet:
driver: bridge
name: icsnet
ipam:
config:
- subnet: 192.168.0.0/24
gateway: 192.168.0.1
driver_opts:
com.docker.network.bridge.name: br_icsnet
fnet:
driver: bridge
name: phynet
ipam:
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1
driver_opts:
com.docker.network.bridge.name: br_phynet