-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
83 lines (74 loc) · 2.05 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
version: '3'
services:
srx_server:
container_name: srx_server
image: nist/bgp-srx
build:
dockerfile: Dockerfile
context: ./
volumes:
- ./examples/bgpsec-keys/:/usr/opt/bgp-srx-examples/bgpsec-keys
- ./srx-server/src/server/srx_server.conf:/usr/etc/srx_server.conf
ports:
- 17900:17900
- 17901:17901
depends_on:
- rpkirtr_server
command:
- /bin/sh
- -c
- |
sed "s/localhost/172.37.0.101/g" /usr/etc/srx_server.conf > /tmp/srx_server.conf
srx_server -f /tmp/srx_server.conf
tty: true
networks:
bgp_net:
ipv4_address: 172.37.0.100
rpkirtr_server:
container_name: rpkirtr_server
image: nist/bgp-srx
build:
dockerfile: Dockerfile
context: ./
ports:
- 323:323
command:
- /bin/sh
- -c
- |
rpkirtr_svr
privileged: true
tty: true
networks:
bgp_net:
ipv4_address: 172.37.0.101
quaggasrx:
container_name: quaggasrx
image: nist/bgp-srx
build:
dockerfile: Dockerfile
context: ./
volumes:
- ./examples/bgpsec-keys/:/usr/opt/bgp-srx-examples/bgpsec-keys
- ./quagga-srx/bgpd/bgpd.conf.sampleSRx:/usr/etc/bgpd.conf
ports:
- 179:179
- 2605:2605
privileged: true
command:
- /bin/sh
- -c
- |
sed "s/srx connect/srx connect 172.37.0.100 17900/g" /usr/etc/bgpd.conf > /etc/bgpd.conf
bgpd -u root -f /etc/bgpd.conf
depends_on:
- srx_server
networks:
bgp_net:
ipv4_address: 172.37.0.4
networks:
bgp_net:
ipam:
driver: default
config:
- subnet: 172.37.0.0/16