Skip to content

Instantly share code, notes, and snippets.

@TEGRAXD
Created January 8, 2025 14:58
Show Gist options
  • Select an option

  • Save TEGRAXD/ef53f2c3bdef39f682d784f46aee8f64 to your computer and use it in GitHub Desktop.

Select an option

Save TEGRAXD/ef53f2c3bdef39f682d784f46aee8f64 to your computer and use it in GitHub Desktop.
Cloudflared Docker Compose with Networks
services:
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
command: tunnel --no-autoupdate run --token yourSecretToken
networks:
- tunnel # Use "tunnel" network that we created.
restart: unless-stopped
networks:
tunnel: # This create a new networks named tunnel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment