version: "3.7"
services:
  tinc:
    network_mode: host
    build:
      context: .
      dockerfile: Dockerfile.tinc
    ports:
      - "655:655/tcp"
      - "655:655/udp"
    volumes:
      - /etc/tinc:/etc/tinc
    environment:
      - RUNMODE=server
      - NETNAME=lixonet
    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:/etc/bird
    cap_add:
      - NET_ADMIN
    restart: always