lixonet-ee/docker-compose.yml

71 lines
1.6 KiB
YAML
Raw Normal View History

version: "3.7"
services:
tinc:
build:
context: .
dockerfile: Dockerfile.tinc
volumes:
- /etc/tinc/${COMPOSE_PROJECT_NAME}:/etc/tinc/${COMPOSE_PROJECT_NAME}
- /usr/bin/docker-proxy:/usr/bin/docker-proxy
environment:
- RUNMODE=server
- NETNAME=${COMPOSE_PROJECT_NAME}
cap_add:
- NET_ADMIN
2020-04-27 22:58:36 +00:00
devices:
- /dev/net/tun:/dev/net/tun
restart: always
networks:
internal:
ipv4_address: ${internal_address}
bird:
network_mode: 'service:tinc'
2020-06-22 00:18:11 +00:00
depends_on:
- tinc
build:
context: .
dockerfile: Dockerfile.bird
volumes:
- /etc/bird/${netname}/:/etc/bird/
2020-06-22 00:18:11 +00:00
- bird-run:/var/run/bird/
cap_add:
- NET_ADMIN
restart: always
2020-06-13 04:22:42 +00:00
bind:
network_mode: 'service:tinc'
2020-06-13 04:22:42 +00:00
build:
context: .
dockerfile: Dockerfile.bind
volumes:
- /etc/bind/${netname}/:/etc/bind/
2020-06-13 04:22:42 +00:00
restart: always
2020-06-22 00:18:11 +00:00
bird_exporter:
network_mode: 'service:tinc'
2020-06-22 00:18:11 +00:00
image: czerwonk/bird_exporter
command: '-bird.v2=true -bird.socket=/var/run/bird/bird.ctl'
depends_on:
- bird
volumes:
- bird-run:/var/run/bird/
restart: always
ping_exporter:
network_mode: 'service:tinc'
2020-06-22 00:18:11 +00:00
image: czerwonk/ping_exporter
command: './ping_exporter --config.path /pinger.yml'
depends_on:
- tinc
volumes:
- /etc/tinc/${netname}/pinger.yml:/pinger.yml
2020-06-22 00:18:11 +00:00
restart: always
volumes:
bird-run:
networks:
internal:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: ${internal_subnet:-$internal_gateway/24}