-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
64 lines (61 loc) · 1.52 KB
/
docker-compose.yaml
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
version: '3'
services:
exabgp:
build: ./monitor/
container_name: exabgp
hostname: exabgp
volumes:
- ./monitor/exabgp.conf:/home/config/exabgp.conf
depends_on:
- quagga1
- quagga2
networks:
test:
ipv4_address: 10.5.0.3
quagga1:
build: ./quagga/
container_name: quagga1
hostname: quagga1
environment:
AS_NUMBER: 65001
LOCAL_IP: 10.5.0.2
ANNOUNCED_PREFIX: 1.0.0.0/8
NEIGHBOR_IP: 10.5.0.3
NEIGHBOR_AS: 65001
NEIGHBOR_IP2: 10.5.0.5
NEIGHBOR_AS2: 65002
networks:
test:
ipv4_address: 10.5.0.2
quagga2:
build: ./quagga/
container_name: quagga2
hostname: quagga2
environment:
AS_NUMBER: 65002
LOCAL_IP: 10.5.0.5
ANNOUNCED_PREFIX: 2.0.0.0/8
NEIGHBOR_IP: 10.5.0.2
NEIGHBOR_AS: 65001
networks:
test:
ipv4_address: 10.5.0.5
client:
build: ./client/
container_name: client
hostname: client
environment:
EXABGP_HOST: "10.5.0.3:5000"
depends_on:
- exabgp
- quagga1
- quagga2
networks:
test:
ipv4_address: 10.5.0.4
networks:
test:
ipam:
driver: default
config:
- subnet: 10.5.0.0/16