Update docker-compose.yml
This commit is contained in:
parent
a9162cd59e
commit
f53a6662b1
@ -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
|
||||
Loading…
Reference in New Issue
Block a user