forked from tomaszklak/net-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (70 loc) · 1.42 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
version: '3'
services:
client1:
container_name: client1
hostname: client1
build:
context: .
tty: true
networks:
net1:
ipv4_address: 192.168.57.11
volumes:
- ./shared/common:/shared/common
- ./shared/client1_data:/shared/unique
server1:
container_name: server1
hostname: server1
build:
context: .
tty: true
networks:
net1:
ipv4_address: 192.168.57.22
net2:
ipv4_address: 192.168.58.33
volumes:
- ./shared/common:/shared/common
- ./shared/server1_data:/shared/unique
server2:
container_name: server2
hostname: server2
build:
context: .
tty: true
networks:
net2:
ipv4_address: 192.168.58.44
net3:
ipv4_address: 192.168.59.55
volumes:
- ./shared/common:/shared/common
- ./shared/server2_data:/shared/unique
client2:
container_name: client2
hostname: client2
build:
context: .
tty: true
networks:
net3:
ipv4_address: 192.168.59.66
volumes:
- ./shared/common:/shared/common
- ./shared/client2_data:/shared/unique
networks:
net1:
driver: bridge
ipam:
config:
- subnet: 192.168.57.0/24
net2:
driver: bridge
ipam:
config:
- subnet: 192.168.58.0/24
net3:
driver: bridge
ipam:
config:
- subnet: 192.168.59.0/24