Skip to content

Commit d2cf535

Browse files
authored
Update cloudflared.yaml
add network mode host to template, otherwise cloudflared has no access to localhost
1 parent 2c210ab commit d2cf535

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/compose/cloudflared.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
container_name: cloudflare-tunnel
88
image: cloudflare/cloudflared:latest
99
restart: unless-stopped
10-
command: tunnel run
10+
network_mode: host
11+
command: tunnel --no-autoupdate run
1112
environment:
12-
- TUNNEL_TOKEN=$CLOUDFLARE_TUNNEL_TOKEN
13+
- 'TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}'

0 commit comments

Comments
 (0)