Skip to content

Instantly share code, notes, and snippets.

@magicstone1412
Created October 20, 2024 00:20
Show Gist options
  • Save magicstone1412/f071f6d31bcb41649cd586ccdcd12114 to your computer and use it in GitHub Desktop.
Save magicstone1412/f071f6d31bcb41649cd586ccdcd12114 to your computer and use it in GitHub Desktop.
Cloudflare Zero Trust Tunnel docker-compose file for Openmediavault
---
services:
# cloudflare tunnel
cloudflare-tunnel:
image: cloudflare/cloudflared
container_name: cloudflare-tunnel
restart: unless-stopped
command: tunnel run
environment:
- "TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}" #Add varible to environment file
healthcheck:
test: ["CMD", "cloudflared", "--version"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
labels:
# enbale watchtower updates
- "com.centurylinklabs.watchtower.enable=true"
@magicstone1412
Copy link
Author

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