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