diff --git a/server/config/navidrome/.env b/server/config/navidrome/.env new file mode 100644 index 0000000..a38cf56 --- /dev/null +++ b/server/config/navidrome/.env @@ -0,0 +1,2 @@ +DOCKER_DATA=/home/joey/data/navidrome +MEDIA_DIR=/mnt/nas/media/Audio/Music \ No newline at end of file diff --git a/server/config/navidrome/docker-compose.yml b/server/config/navidrome/docker-compose.yml new file mode 100644 index 0000000..79e76cc --- /dev/null +++ b/server/config/navidrome/docker-compose.yml @@ -0,0 +1,23 @@ +version: "3" +services: + navidrome: + image: deluan/navidrome:latest + user: 1000:1000 + networks: + - web + ports: + - "4533:4533" + restart: unless-stopped + environment: + ND_BASEURL: "navidrome.jafner.net" + volumes: + - "$DOCKER_DATA:/data" + - "$MUSIC_DIR:/music:ro" + labels: + - traefik.http.routers.navidrome.rule=Host(`navidrome.jafner.net`) + - traefik.http.routers.navidrome.tls.certresolver=lets-encrypt + - traefik.http.routers.navidrome.middlewares=lan-only@file + +networks: + web: + external: true \ No newline at end of file