mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 09:52:50 +08:00
Add cloudflared tunnel service to docker-compose
Enables exposing the gateway via Cloudflare Tunnel without a public DNS record pointing at the home server's real IP. Token is supplied via CLOUDFLARE_TUNNEL_TOKEN in a gitignored .env file. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c10572feda
commit
fd24ae740e
1 file changed
+12
@@ -16,3 +16,15 @@ services:
|
|||||||
# webspeak3:
|
# webspeak3:
|
||||||
# ports:
|
# ports:
|
||||||
# - "8080:8080"
|
# - "8080:8080"
|
||||||
|
|
||||||
|
cloudflared:
|
||||||
|
image: cloudflare/cloudflared:latest
|
||||||
|
container_name: webspeak3-cloudflared
|
||||||
|
restart: unless-stopped
|
||||||
|
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
|
||||||
|
# Token comes from a gitignored .env file next to this compose file:
|
||||||
|
# CLOUDFLARE_TUNNEL_TOKEN=eyJ...
|
||||||
|
# No depends_on/network wiring needed - the tunnel's Public Hostname
|
||||||
|
# config (set in the Cloudflare dashboard) points at the webspeak3
|
||||||
|
# service by its Compose service name (http://webspeak3:8080), and
|
||||||
|
# Compose puts both services on the same default network automatically.
|
||||||
Reference in new issue
Block a user