1
0
forked from extern/smegmesh
smegmesh/examples/simple/docker-compose.yaml
2024-08-11 12:24:15 +01:00

52 lines
1.0 KiB
YAML

version: '3'
networks:
net-1:
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 2001:db8::/64
services:
wg-1:
image: smegmesh-base:latest
cap_add:
- NET_ADMIN
- NET_RAW
tty: true
networks:
- net-1
volumes:
- ./shared:/shared
command: "smegd /shared/configuration.yaml"
sysctls:
- net.ipv6.conf.all.forwarding=1
- net.ipv6.conf.all.disable_ipv6=0
wg-2:
image: smegmesh-base:latest
cap_add:
- NET_ADMIN
- NET_RAW
tty: true
networks:
- net-1
volumes:
- ./shared:/shared
command: "smegd /shared/configuration.yaml"
sysctls:
- net.ipv6.conf.all.forwarding=1
- net.ipv6.conf.all.disable_ipv6=0
wg-3:
image: smegmesh-base:latest
cap_add:
- NET_ADMIN
- NET_RAW
tty: true
networks:
- net-1
volumes:
- ./shared:/shared
command: "smegd /shared/configuration.yaml"
sysctls:
- net.ipv6.conf.all.forwarding=1
- net.ipv6.conf.all.disable_ipv6=0