services:
  barehands:
    build: .
    container_name: barehands
    restart: unless-stopped
    environment:
      BAREHANDS_HOST: 0.0.0.0
    networks:
      - netbird
    labels:
      - traefik.enable=true
      - traefik.docker.network=netbird_netbird
      - traefik.http.routers.barehands.rule=Host(`barehands.flyworksuite.com`)
      - traefik.http.routers.barehands.entrypoints=websecure
      - traefik.http.routers.barehands.tls=true
      - traefik.http.routers.barehands.tls.certresolver=letsencrypt
      - traefik.http.routers.barehands.service=barehands
      - traefik.http.services.barehands.loadbalancer.server.port=8794
    logging:
      driver: json-file
      options:
        max-size: 100m
        max-file: "3"

networks:
  netbird:
    external: true
    name: netbird_netbird
