-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (94 loc) · 1.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
99 lines (94 loc) · 1.88 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
services:
onos:
image: onosproject/onos:latest
container_name: onos
hostname: onos
privileged: true
networks:
- default
environment:
- ONOS_APPS=drivers,fpm,fwd,openflow
ports:
- "2620:2620"
- "6653:6653"
- "8101:8101"
- "8181:8181"
tty: true
stdin_open: true
h1:
image: host
container_name: h1
privileged: true
build:
context: .
dockerfile: host.Dockerfile
cap_add:
- NET_ADMIN
- NET_BROADCAST
entrypoint: ["/bin/sh","-c"]
command:
- |
ip route del default
sleep infinity
h2:
image: host
container_name: h2
privileged: true
build:
context: .
dockerfile: host.Dockerfile
cap_add:
- NET_ADMIN
- NET_BROADCAST
entrypoint: ["/bin/sh","-c"]
command:
- |
ip route del default
sleep infinity
R1:
image: frrouting/frr-debian
container_name: R1
hostname: R1
privileged: true
sysctls:
- net.ipv4.ip_forward=1
cap_add:
- NET_ADMIN
- NET_BROADCAST
networks:
R1R2br:
ipv4_address: 172.20.0.2
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./config/daemons:/etc/frr/daemons
- ./config/R1/frr.conf:/etc/frr/frr.conf
R2:
image: frrouting/frr-debian
container_name: R2
hostname: R2
privileged: true
sysctls:
- net.ipv4.ip_forward=1
cap_add:
- NET_ADMIN
- NET_BROADCAST
networks:
R1R2br:
ipv4_address: 172.20.0.3
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./config/daemons:/etc/frr/daemons
- ./config/R2/frr.conf:/etc/frr/frr.conf
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16
R1R2br:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16