Created
October 20, 2024 00:20
-
-
Save magicstone1412/f071f6d31bcb41649cd586ccdcd12114 to your computer and use it in GitHub Desktop.
Cloudflare Zero Trust Tunnel docker-compose file for Openmediavault
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: