-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
116 lines (111 loc) · 2.37 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
version: '3.7'
networks:
r01-as65536-p1:
ipam:
config:
- subnet: 10.1.23.0/24
r01-as65536-p2:
ipam:
config:
- subnet: 10.1.24.0/24
r01-as65536-p3:
ipam:
config:
- subnet: 10.1.25.0/24
r01-r02:
ipam:
config:
- subnet: 172.16.101.0/29
r02-r03:
ipam:
config:
- subnet: 172.16.102.0/29
r03-as65537-p1:
ipam:
config:
- subnet: 10.1.42.0/24
r03-as65537-p2:
ipam:
config:
- subnet: 10.1.43.0/24
r03-as65537-p3:
ipam:
config:
- subnet: 10.1.44.0/24
router-mgmt:
ipam:
config:
- subnet: 172.16.42.0/24
services:
r01:
image: opennms/frrouting:7.1
container_name: r01
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
- net.ipv4.ip_forward=1
- net.ipv6.route.max_size=131072
cap_add:
- ALL
volumes:
- ./r01/etc/frr:/etc/frr
networks:
router-mgmt:
ipv4_address: 172.16.42.101
r01-r02:
ipv4_address: 172.16.101.5
r01-as65536-p1:
ipv4_address: 10.1.23.101
r01-as65536-p2:
ipv4_address: 10.1.24.101
r01-as65536-p3:
ipv4_address: 10.1.25.101
ports:
- "17681:7681/tcp"
r02:
image: opennms/frrouting:7.1
container_name: r02
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
- net.ipv4.ip_forward=1
- net.ipv6.route.max_size=131072
cap_add:
- ALL
volumes:
- ./r02/etc/frr:/etc/frr
networks:
router-mgmt:
ipv4_address: 172.16.42.102
r01-r02:
ipv4_address: 172.16.101.6
r02-r03:
ipv4_address: 172.16.102.5
ports:
- "27681:7681/tcp"
r03:
image: opennms/frrouting:7.1
container_name: r03
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
- net.ipv4.ip_forward=1
- net.ipv6.route.max_size=131072
cap_add:
- ALL
volumes:
- ./r03/etc/frr:/etc/frr
networks:
router-mgmt:
ipv4_address: 172.16.42.103
r02-r03:
ipv4_address: 172.16.102.6
r03-as65537-p1:
ipv4_address: 10.1.42.103
r03-as65537-p2:
ipv4_address: 10.1.43.103
r03-as65537-p3:
ipv4_address: 10.1.44.103
ports:
- "57681:7681/tcp"