lixonet-ee/docker-compose.yml
2020-06-13 04:22:42 +00:00

46 lines
944 B
YAML

version: "3.7"
services:
tinc:
network_mode: host
build:
context: .
dockerfile: Dockerfile.tinc
ports:
- "655:655/tcp"
- "655:655/udp"
volumes:
- /etc/tinc/${COMPOSE_PROJECT_NAME}:/etc/tinc/${COMPOSE_PROJECT_NAME}
environment:
- RUNMODE=server
- NETNAME=${COMPOSE_PROJECT_NAME}
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
restart: always
bird:
network_mode: host
build:
context: .
dockerfile: Dockerfile.bird
ports:
- "179:179/tcp"
volumes:
- /etc/bird/${COMPOSE_PROJECT_NAME}/:/etc/bird/
cap_add:
- NET_ADMIN
restart: always
bind:
network_mode: host
depends_on:
- tinc
build:
context: .
dockerfile: Dockerfile.bind
ports:
- "53:53/udp"
- "53:53/tcp"
volumes:
- /etc/bind/${COMPOSE_PROJECT_NAME}/:/etc/bind/
restart: always