Skip to content

Instantly share code, notes, and snippets.

@fullmetalbrackets
Last active March 7, 2024 01:37
Show Gist options
  • Save fullmetalbrackets/1b762a2688b81ce6b6f36fd174b335a1 to your computer and use it in GitHub Desktop.
Save fullmetalbrackets/1b762a2688b81ce6b6f36fd174b335a1 to your computer and use it in GitHub Desktop.
Navidrome + Cloudflare Tunnel with Docker-Compose
# Before running this go to Cloudflare Zero Trust dashboard -> Access -> Tunnels -> Create new tunnel
# Copy & paste the generated token next to TUNNEL_TOKEN= env variable below
# Full guide at https://fullmetalbrackets.com/blog/setup-cloudflare-tunnel-to-access-self-hosted-apps
services:
tunnel:
container_name: cloudflare-tunnel
image: cloudflare/cloudflared
command: tunnel run
environment:
- TUNNEL_TOKEN=<cloudflare-tunnel-token>
restart: unless-stopped
navidrome:
container_name: navidrome
image: deluan/navidrome:latest
volumes:
- <path-to-local-directory>/navidrome:/data
- <path-to-local-directory>/music:/music:ro
environment:
ND_BASEURL: ""
ND_SCANSCHEDULE: 1h
ND_SESSIONTIMEOUT: 24h
ND_LOGLEVEL: info
network_mode: host
depends_on:
- tunnel
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment