Skip to content

Add cloudflared tunnel service to the compose stack #1

Description

@chrispezza

Per ADR-009 (docs/adr/009-remote-access-cloudflare-tunnel-access.md): Barback goes public at barback.pezza.dev through a Cloudflare Tunnel. The repo-side changes can land ahead of go-live; the domain is not enabled until the always-on host migration (see the migration issue).

  • Add a cloudflared service to deploy/docker-compose.yml: cloudflare/cloudflared image, tunnel run --token ${CLOUDFLARE_TUNNEL_TOKEN}, restart: unless-stopped, depends_on: web
  • Add CLOUDFLARE_TUNNEL_TOKEN to deploy/.env.example with a comment (gitignored .env holds the real value)
  • Document BARBACK_ORIGIN=https://barback.pezza.dev as the production value in .env.example (APP_URL must match the public origin)
  • Tunnel public hostname (dashboard side): barback.pezza.dev → http://web:80
  • No client rebuild needed — relative /bar and /search URLs (ADR-005)
  • Salt Rim, API port 8000, and Meilisearch 7700 stay loopback-only; the tunnel sees only the front door

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementType: new capability or improvement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions