diff --git a/docker-compose.yml b/docker-compose.yml index b85361f..ea8568f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,3 +16,15 @@ 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.