Update cloudflared.yaml

add network mode host to template, otherwise cloudflared has no access to localhost
This commit is contained in:
Darren Sisson
2024-09-18 16:09:24 +01:00
committed by GitHub
parent 2c210abf57
commit d2cf53578a

View File

@@ -7,6 +7,7 @@ services:
container_name: cloudflare-tunnel container_name: cloudflare-tunnel
image: cloudflare/cloudflared:latest image: cloudflare/cloudflared:latest
restart: unless-stopped restart: unless-stopped
command: tunnel run network_mode: host
command: tunnel --no-autoupdate run
environment: environment:
- TUNNEL_TOKEN=$CLOUDFLARE_TUNNEL_TOKEN - 'TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}'