Last active
March 7, 2024 01:37
-
-
Save fullmetalbrackets/1b762a2688b81ce6b6f36fd174b335a1 to your computer and use it in GitHub Desktop.
Navidrome + Cloudflare Tunnel with Docker-Compose
This file contains 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
# 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