-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (74 loc) · 1.56 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
version: "2.4"
services:
rattan:
build: .
hostname: rattan
stdin_open: true
tty: true
privileged: true
cap_add:
- SYS_ADMIN # Needed for ip netns
- NET_ADMIN
- NET_RAW
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/netns:/var/run/netns
- ./tmp:/tmp
networks:
leftnet:
ipv4_address: 10.1.1.2
ipv6_address: fd11::2
rightnet:
ipv4_address: 10.2.1.2
ipv6_address: fd12::2
client:
image: jonlabelle/network-tools
hostname: client
stdin_open: true
tty: true
depends_on:
- rattan
cap_add:
- NET_ADMIN
environment:
- RATTAN_HOST=10.1.1.2
- RATTAN_HOST6=fd11::2
networks:
leftnet:
ipv4_address: 10.1.1.3
ipv6_address: fd11::3
server:
image: jonlabelle/network-tools
hostname: server
stdin_open: true
tty: true
depends_on:
- rattan
cap_add:
- NET_ADMIN
environment:
- RATTAN_HOST=10.2.1.2
- RATTAN_HOST6=fd12::2
networks:
rightnet:
ipv4_address: 10.2.1.3
ipv6_address: fd12::3
networks:
leftnet:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_ip_masquerade: 'false'
enable_ipv6: true
ipam:
config:
- subnet: 10.1.1.0/24
- subnet: fd11::/64
rightnet:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_ip_masquerade: 'false'
enable_ipv6: true
ipam:
config:
- subnet: 10.2.1.0/24
- subnet: fd12::/64