From 63b62c15b3a79530b298f2043129bde692593287 Mon Sep 17 00:00:00 2001 From: aki Date: Fri, 25 Apr 2025 11:00:16 +0800 Subject: [PATCH] fix(tailscale): Use localhost and network_mode for Funnel/Serve Tailscale Funnel/Serve requires proxying to localhost or 127.0.0.1. This commit updates the target URL to http://localhost:80 and sets network_mode to service:traefik to allow tailscale to correctly forward traffic to the traefik container. --- docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6e8a4d8..698b247 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -514,6 +514,7 @@ services: cap_add: - NET_ADMIN - NET_RAW + network_mode: service:traefik # Add this line restart: always command: - /bin/sh @@ -540,11 +541,11 @@ services: # Check the ENABLE_FUNNEL_HTTPS variable if [ "${ENABLE_FUNNEL_HTTPS}" = "true" ]; then echo "ENABLE_FUNNEL_HTTPS is true. Setting up Funnel -> http://traefik:80..." - tailscale funnel --bg http://traefik:80 + tailscale funnel --bg http://localhost:80 echo "Tailscale Funnel configured." else echo "ENABLE_FUNNEL_HTTPS is false. Setting up Serve -> http://traefik:80..." - tailscale serve --bg http://traefik:80 + tailscale serve --bg http://localhost:80 echo "Tailscale Serve configured." fi # --- End Tailscale Funnel/Serve ---