routing-lab/docker-compose.yml
2023-12-10 02:52:44 +01:00

124 lines
2.6 KiB
YAML

---
networks:
as23_1:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: fd00:d0ca:23:1::/64
ip_range: fd00:d0ca:23:1::/96
as42_1:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: fd00:d0ca:42:1::/64
ip_range: fd00:d0ca:42:1::/96
as1337_1:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: fd00:d0ca:1337:1::/64
ip_range: fd00:d0ca:1337:1::/96
as23_as42_1:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: fd00:d0ca:2342:1::/64
ip_range: fd00:d0ca:2342:1::/96
as23_as42_2:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: fd00:d0ca:2342:2::/64
ip_range: fd00:d0ca:2342:2::/96
as23_as1337_1:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: fd00:d0ca:2313:1::/64
ip_range: fd00:d0ca:2313:1::/96
as42_as1337_1:
driver: bridge
enable_ipv6: true
ipam:
config:
- subnet: fd00:d0ca:4213:1::/64
ip_range: fd00:d0ca:4213:1::/96
services:
as23:
image: docker.io/openbgpd/openbgpd
volumes:
- ./as23/conf:/etc/bgpd
- ./as23/rpki:/var/lib/rpki-client
- ./as23/run:/run/bgpd
sysctls:
- net.ipv6.conf.all.forwarding=1
cap_add:
- NET_ADMIN
networks:
as23_1:
ipv6_address: fd00:d0ca:23:1::10
as23_as42_1:
ipv6_address: fd00:d0ca:2342:1::23
as23_as42_2:
ipv6_address: fd00:d0ca:2342:2::23
as23_as1337_1:
ipv6_address: fd00:d0ca:2313:1::23
as42:
image: docker.io/openbgpd/openbgpd
volumes:
- ./as42/conf:/etc/bgpd
- ./as42/rpki:/var/lib/rpki-client
- ./as42/run:/run/bgpd
sysctls:
- net.ipv6.conf.all.forwarding=1
cap_add:
- NET_ADMIN
networks:
as42_1:
ipv6_address: fd00:d0ca:42:1::10
as23_as42_1:
ipv6_address: fd00:d0ca:2342:1::42
as23_as42_2:
ipv6_address: fd00:d0ca:2342:2::42
as42_as1337_1:
ipv6_address: fd00:d0ca:4213:1::42
as1337:
image: docker.io/openbgpd/openbgpd
volumes:
- ./as1337/conf:/etc/bgpd
- ./as1337/rpki:/var/lib/rpki-client
- ./as1337/run:/run/bgpd
sysctls:
- net.ipv6.conf.all.forwarding=1
cap_add:
- NET_ADMIN
networks:
as1337_1:
ipv6_address: fd00:d0ca:1337:1::10
as23_as1337_1:
ipv6_address: fd00:d0ca:2313:1::1337
as42_as1337_1:
ipv6_address: fd00:d0ca:4213:1::1337
alice-lg:
build: ./alice-lg
network_mode: host