From 7f997aa9f2d13f9fe59b4e6f5dbad04e3412392a Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Thu, 4 Jul 2024 12:17:09 +0000 Subject: [PATCH] Move environment variables out of compose file completely --- docker-compose.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 180d9fa..63e6cf6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,16 +5,8 @@ services: ports: - "4533:4533" restart: unless-stopped - environment: - - ND_SCANSCHEDULDE=${SCAN_SCHEDULE} - - ND_LOGLEVEL=${LOG_LEVEL} - - ND_SESSIONTIMEOUT=${SESSION_TIMEOUT} - - ND_SPOTIFY_ID=${SPOTIFY_CLIENT_ID} - - ND_SPOTIFY_SECRET=${SPOTIFY_SECRET} - - ND_LASTFM_LANGUAGE=${LASTFM_LANGUAGE} - - ND_LASTFM_APIKEY=${LASTFM_APIKEY} - - ND_LASTFM_SECRET=${LASTFM_SECRET} - - ND_ENABLESHARING=true + env_file: + - .env volumes: - "/home/reinhard/navidrome/data:/data" - "/mnt/raid/music/:/music:ro"