Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/production/.env.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CLOUDFLARED_TUNNEL_TOKEN=
SENTRY_CRONS=
STACK_DOMAIN=
TRAEFIK_ACME_EMAIL=
Expand Down
8 changes: 7 additions & 1 deletion src/production/cloudflared/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
secrets:
cloudflared-tunnel-token:
# The secure tunnel's connector token.
external: true
services:
cloudflared:
# You can configure the secure tunnel at [dash.cloudflare.com](https://dash.cloudflare.com/).
Expand All @@ -10,7 +14,7 @@ services:
environment:
# The metrics server binds to the loopback interface because nothing outside the container reads it.
TUNNEL_METRICS: 127.0.0.1:20241
TUNNEL_TOKEN: ${CLOUDFLARED_TUNNEL_TOKEN}
TUNNEL_TOKEN_FILE: /run/secrets/cloudflared-tunnel-token
healthcheck:
# The image ships no shell and no HTTP client, so `cloudflared` probes itself.
# It reads the metrics address from `TUNNEL_METRICS`, calls that server's readiness endpoint and exits non-zero while no connection to Cloudflare's edge is registered.
Expand All @@ -20,3 +24,5 @@ services:
retries: 3
start_period: 30s
image: cloudflare/cloudflared:2026.8.3
secrets:
- cloudflared-tunnel-token
Loading