From 1cdf054afa55cf1fb6ae67e8bf599ad188ff2885 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 22 Jun 2022 16:58:34 -0700 Subject: [PATCH] Init navidrome --- server/config/navidrome/.env | 2 ++ server/config/navidrome/docker-compose.yml | 23 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 server/config/navidrome/.env create mode 100644 server/config/navidrome/docker-compose.yml 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