Files
webspeak3/docker-compose.yml
MoepchiandClaude Sonnet 5 fd24ae740e 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>
2026-08-11 01:22:48 +02:00

31 lines
1.2 KiB
YAML

services:
webspeak3:
build: .
image: moepchi/webspeak3:latest
container_name: webspeak3
restart: unless-stopped
environment:
- PORT=8080
# Port publishing is deployment-specific and left out of this file on
# purpose - Compose concatenates `ports:` lists across an override file
# instead of replacing them, so adding one here would double-publish
# instead of letting an override change it. Set it in a local, gitignored
# docker-compose.override.yml:
#
# services:
# webspeak3:
# ports:
# - "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.