forked from quic-interop/quic-network-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (92 loc) · 2.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
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
version: "3.5"
services:
sim:
image: martenseemann/quic-network-simulator
container_name: sim
hostname: sim
stdin_open: true
tty: true
volumes:
- ./logs/sim:/logs
environment:
- SCENARIO=$SCENARIO
cap_add:
- NET_ADMIN
expose:
- "57832"
networks:
leftnet:
ipv4_address: 193.167.0.2
ipv6_address: fd00:cafe:cafe:0::2
rightnet:
ipv4_address: 193.167.100.2
ipv6_address: fd00:cafe:cafe:100::2
server:
build: ./$SERVER
image: $SERVER
container_name: server
hostname: server
stdin_open: true
tty: true
volumes:
- ./logs/server:/logs
environment:
- ROLE=server
- SERVER_PARAMS=$SERVER_PARAMS
depends_on:
- sim
cap_add:
- NET_ADMIN
networks:
rightnet:
ipv4_address: 193.167.100.100
ipv6_address: fd00:cafe:cafe:100::100
extra_hosts:
- "client4:193.167.0.100"
- "client6:fd00:cafe:cafe:0::100"
- "client46:193.167.0.100"
- "client46:fd00:cafe:cafe:0::100"
client:
build: ./$CLIENT
image: $CLIENT
container_name: client
hostname: client
stdin_open: true
tty: true
volumes:
- ./logs/client:/logs
environment:
- ROLE=client
- CLIENT_PARAMS=$CLIENT_PARAMS
depends_on:
- sim
cap_add:
- NET_ADMIN
networks:
leftnet:
ipv4_address: 193.167.0.100
ipv6_address: fd00:cafe:cafe:0::100
extra_hosts:
- "server4:193.167.100.100"
- "server6:fd00:cafe:cafe:100::100"
- "server46:193.167.100.100"
- "server46:fd00:cafe:cafe:100::100"
networks:
leftnet:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_ip_masquerade: 'false'
enable_ipv6: true
ipam:
config:
- subnet: 193.167.0.0/24
- subnet: fd00:cafe:cafe:0::/64
rightnet:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_ip_masquerade: 'false'
enable_ipv6: true
ipam:
config:
- subnet: 193.167.100.0/24
- subnet: fd00:cafe:cafe:100::/64