Skip to content

Instantly share code, notes, and snippets.

@mallendeo
Last active February 8, 2024 00:35
Show Gist options
  • Save mallendeo/c8def62d65447a03b5ce286c37890e85 to your computer and use it in GitHub Desktop.
Save mallendeo/c8def62d65447a03b5ce286c37890e85 to your computer and use it in GitHub Desktop.
Cloudflared docker compose
version: '3.3'
services:
cloudflared:
container_name: cloudflared
image: 'cloudflare/cloudflared:latest'
command: 'tunnel --no-autoupdate run --token ${CF_TUNNEL_TOKEN}'
restart: 'unless-stopped'
networks:
- apps
env_file:
- stack.env
networks:
apps:
external: true
## Get token from https://one.dash.cloudflare.com/ -> Network -> Tunnels
CF_TUNNEL_TOKEN=eyJh..............
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment