version: "3.7" services: web: network_mode: "host" # TODO: We can remove this later with some iptables magic image: tailscale/tailscale:v1.34.0@sha256:bc76dd81a3c478a3913d060d73446d6c22e9b825c24ba67831430a424dfb1c8e restart: on-failure stop_grace_period: 1m command: "sh -c 'tailscale web --listen 0.0.0.0:8240 & exec tailscaled --tun=userspace-networking'" volumes: - ${APP_DATA_DIR}/data:/var/lib