-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (54 loc) · 1.1 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
version: '3'
services:
switch:
image: python
volumes:
- ./entrypoint_switch.sh:/entrypoint_switch.sh
- ./code/switch.py:/switch.py
- ./code/config.json:/config.json
entrypoint: /entrypoint_switch.sh
networks:
public:
ipv4_address: 172.42.0.2
neta:
ipv4_address: 172.42.1.3
netb:
ipv4_address: 172.42.2.3
nodea:
build: ./nodex
volumes:
- ./entrypoint_nodea.sh:/entrypoint_nodea.sh
entrypoint: /entrypoint_nodea.sh
cap_add:
- NET_ADMIN
networks:
neta:
ipv4_address: 172.42.1.2
nodeb:
build: ./nodex
volumes:
- ./entrypoint_nodeb.sh:/entrypoint_nodeb.sh
entrypoint: /entrypoint_nodeb.sh
cap_add:
- NET_ADMIN
networks:
netb:
ipv4_address: 172.42.2.2
networks:
public:
ipam:
driver: default
config:
- subnet: 172.42.0.0/24
neta:
internal: true
ipam:
driver: default
config:
- subnet: 172.42.1.0/24
netb:
internal: true
ipam:
driver: default
config:
- subnet: 172.42.2.0/24