Move environment variables out of compose file completely

This commit is contained in:
Ryan Harg 2024-07-04 12:17:09 +00:00
parent a68d36d8a8
commit 7f997aa9f2

View file

@ -5,16 +5,8 @@ services:
ports: ports:
- "4533:4533" - "4533:4533"
restart: unless-stopped restart: unless-stopped
environment: env_file:
- ND_SCANSCHEDULDE=${SCAN_SCHEDULE} - .env
- 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
volumes: volumes:
- "/home/reinhard/navidrome/data:/data" - "/home/reinhard/navidrome/data:/data"
- "/mnt/raid/music/:/music:ro" - "/mnt/raid/music/:/music:ro"