version: "3.7" services: web: network_mode: "host" # TODO: We can remove this later with some iptables magic image: tailscale/tailscale:v1.86.2@sha256:241d9518b7e0b6e533dbd0117fcea15acb4174249210837f52b71615949ce9d2 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