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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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