-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
171 lines (153 loc) · 4.01 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: "2.3"
networks:
ixpmanager:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.30.201.0/24
gateway: 172.30.201.1
- subnet: fd99::/64
volumes:
mrtg-data:
services:
mysql:
image: ixpmanager/mysql:4.7.0
networks:
ixpmanager:
ipv4_address: 172.30.201.10
ipv6_address: fd99::10
aliases:
- ixpmanager-mysql
mailcatcher:
image: schickling/mailcatcher
ports:
- 1080:1080
networks:
ixpmanager:
ipv4_address: 172.30.201.11
mrtg:
image: cityhawk/mrtg
depends_on:
- "switch1"
- "switch2"
networks:
ixpmanager:
ipv4_address: 172.30.201.12
volumes:
- mrtg-data:/mrtg_data
- ./mrtg/mrtg.cfg:/etc/mrtg.cfg
- ./mrtg/update-mrtg-conf.sh:/update-mrtg-conf.sh
switch1:
image: tandrup/snmpsim
networks:
ixpmanager:
ipv4_address: 172.30.201.60
volumes:
- ./snmpwalks:/usr/share/snmpsim/data
switch2:
image: tandrup/snmpsim
networks:
ixpmanager:
ipv4_address: 172.30.201.61
volumes:
- ./snmpwalks:/usr/share/snmpsim/data
www:
image: ixpmanager/www:4.7.1
ports:
- 8880:80
depends_on:
- "mailcatcher"
- "mysql"
networks:
ixpmanager:
ipv4_address: 172.30.201.20
ipv6_address: fd99::20
aliases:
- ixpmanager-www
extra_hosts:
- "rs1-ipv4:172.30.201.30"
- "rs1-ipv4.ixpmanager:172.30.201.30"
- "rs1-ipv6:172.30.201.30"
- "rs1-ipv6.ixpmanager:172.30.201.30"
- "switch1:172.30.201.60"
- "switch2:172.30.201.61"
volumes:
- mrtg-data:/srv/mrtg
rs1:
image: ixpmanager/rs1:4.7.0
ports:
- 8881:80
depends_on:
- "www"
networks:
ixpmanager:
ipv4_address: 172.30.201.30
ipv6_address: fd99::30
cap_add:
- ALL
cust-as112:
image: ixpmanager/bird:1.6.3
depends_on:
- "rs1"
networks:
ixpmanager:
ipv4_address: 172.30.201.106
cap_add:
- ALL
cust-as112:
image: ixpmanager/bird:1.6.3
depends_on:
- "rs1"
networks:
ixpmanager:
ipv4_address: 172.30.201.106
cap_add:
- ALL
volumes:
- ./rs-cust/as112-bird.conf:/etc/bird/bird.conf
cust-as42:
image: ixpmanager/bird:1.6.3
depends_on:
- "rs1"
networks:
ixpmanager:
ipv4_address: 172.30.201.136
cap_add:
- ALL
volumes:
- ./rs-cust/as42-bird.conf:/etc/bird/bird.conf
cust-as1213:
image: ixpmanager/bird:1.6.3
depends_on:
- "rs1"
networks:
ixpmanager:
ipv4_address: 172.30.201.110
cap_add:
- ALL
volumes:
- ./rs-cust/as1213-bird.conf:/etc/bird/bird.conf
cust-as1213-v6:
image: ixpmanager/bird6:1.6.3
depends_on:
- "rs1"
networks:
ixpmanager:
ipv6_address: fd99::110
cap_add:
- ALL
volumes:
- ./rs-cust/as1213-bird6.conf:/etc/bird/bird6.conf
cust-as25441-v6:
image: ixpmanager/bird6:1.6.3
depends_on:
- "rs1"
networks:
ixpmanager:
ipv6_address: fd99::108
cap_add:
- ALL
volumes:
- ./rs-cust/as25441-bird6.conf:/etc/bird/bird6.conf