From f53a6662b1f22028235e042c22a6623ad6dd1768 Mon Sep 17 00:00:00 2001 From: hotstovejer Date: Mon, 15 Sep 2025 16:00:00 -0500 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b7c6372..de83a13 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,38 +1,36 @@ -name: spotizerr +# HEY, YOU! READ THE DOCS BEFORE YOU DO ANYTHING! +# https://spotizerr.rtfd.io +name: spotizerr services: spotizerr: - volumes: - - /mnt/mediastorage/spotify/creds:/creds - - /mnt/mediastorage/spotify/config:/config - - ./downloads:/app/downloads # <-- Change this for your music library dir - - /mnt/mediastorage/spotify/logs:/logs # <-- Volume for persistent logs - ports: - - 7171:7171 image: cooldockerizer93/spotizerr + user: "1000:1000" # Spotizerr user:group ids + volumes: + # Ensure these directories and the .cache file exist and are writable by the container user + - ./data:/app/data # data directory, contains config, creds, watch, history + - ./downloads:/app/downloads # downloads directory, contains downloaded files + - ./logs:/app/logs # logs directory, contains logs + - ./.cache:/app/.cache # cache file + ports: + # Port to expose the app on + - 7171:7171 container_name: spotizerr-app restart: unless-stopped - environment: - - PUID=1000 # Replace with your desired user ID | Remove both if you want to run as root (not recommended, might result in unreadable files) - - PGID=1000 # Replace with your desired group ID | The user must have write permissions in the volume mapped to /app/downloads - - UMASK=0022 # Optional: Sets the default file permissions for newly created files within the container. - - REDIS_HOST=redis - - REDIS_PORT=6379 - - REDIS_DB=0 - - REDIS_URL=redis://redis:6379/0 - - REDIS_BACKEND=redis://redis:6379/0 - - EXPLICIT_FILTER=false # Set to true to filter out explicit content + env_file: + # Ensure you have a .env file in the root of the project, with the correct values + - .env depends_on: - - redis - + - redis redis: image: redis:alpine container_name: spotizerr-redis restart: unless-stopped + env_file: + - .env volumes: - - redis-data:/data - command: redis-server --appendonly yes - + - redis-data:/data + command: sh -c 'redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes' volumes: redis-data: driver: local \ No newline at end of file