-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathdocker-compose.yml
184 lines (167 loc) · 4.63 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
172
173
174
175
176
177
178
179
180
181
182
183
184
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:
build:
context: tools/docker/containers/mysql
image: ixpmanager/mysql:dev
platform: linux/x86_64
ports:
- 33060:3306
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
- ./tools/docker/mrtg/mrtg.cfg:/etc/mrtg.cfg
- ./tools/docker/mrtg/update-mrtg-conf.sh:/update-mrtg-conf.sh
switch1:
image: tandrup/snmpsim
networks:
ixpmanager:
ipv4_address: 172.30.201.60
volumes:
- ./tools/docker/snmpwalks:/usr/share/snmpsim/data
switch2:
image: tandrup/snmpsim
networks:
ixpmanager:
ipv4_address: 172.30.201.61
volumes:
- ./tools/docker/snmpwalks:/usr/share/snmpsim/data
www:
build:
context: tools/docker/containers/www
environment:
XDEBUG_CONFIG: remote_host=${DOCKER_XDEBUG_CONFIG_REMOTE_HOST}
image: ixpmanager/www:v5.0.0
platform: linux/x86_64
ports:
- 8880:80
depends_on:
- "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:
- .:/srv/ixpmanager
- mrtg-data:/srv/mrtg
routinator:
build:
context: tools/docker/containers/routinator
networks:
ixpmanager:
ipv4_address: 172.30.201.31
ipv6_address: fd99::31
rs1:
build:
context: tools/docker/containers/rs1
ports:
- 8881:80
depends_on:
- "www"
- "routinator"
networks:
ixpmanager:
ipv4_address: 172.30.201.30
ipv6_address: fd99::30
cap_add:
- ALL
cust-as112:
image: ixpmanager/bird:1.6.3
platform: linux/x86_64
depends_on:
- "rs1"
networks:
ixpmanager:
ipv4_address: 172.30.201.106
cap_add:
- ALL
volumes:
- ./tools/docker/rs-cust/as112-bird.conf:/etc/bird/bird.conf
cust-as42:
image: ixpmanager/bird:1.6.3
platform: linux/x86_64
depends_on:
- "rs1"
networks:
ixpmanager:
ipv4_address: 172.30.201.136
cap_add:
- ALL
volumes:
- ./tools/docker/rs-cust/as42-bird.conf:/etc/bird/bird.conf
cust-as1213:
image: ixpmanager/bird:1.6.3
platform: linux/x86_64
depends_on:
- "rs1"
networks:
ixpmanager:
ipv4_address: 172.30.201.110
cap_add:
- ALL
volumes:
- ./tools/docker/rs-cust/as1213-bird.conf:/etc/bird/bird.conf
cust-as1213-v6:
image: ixpmanager/bird6:1.6.3
platform: linux/x86_64
depends_on:
- "rs1"
networks:
ixpmanager:
ipv6_address: fd99::110
cap_add:
- ALL
volumes:
- ./tools/docker/rs-cust/as1213-bird6.conf:/etc/bird/bird6.conf
cust-as25441-v6:
image: ixpmanager/bird6:1.6.3
platform: linux/x86_64
depends_on:
- "rs1"
networks:
ixpmanager:
ipv6_address: fd99::108
cap_add:
- ALL
volumes:
- ./tools/docker/rs-cust/as25441-bird6.conf:/etc/bird/bird6.conf