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:
|
services:
|
||||||
spotizerr:
|
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
|
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
|
container_name: spotizerr-app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
env_file:
|
||||||
- PUID=1000 # Replace with your desired user ID | Remove both if you want to run as root (not recommended, might result in unreadable files)
|
# Ensure you have a .env file in the root of the project, with the correct values
|
||||||
- PGID=1000 # Replace with your desired group ID | The user must have write permissions in the volume mapped to /app/downloads
|
- .env
|
||||||
- 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
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
container_name: spotizerr-redis
|
container_name: spotizerr-redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- redis-data:/data
|
- redis-data:/data
|
||||||
command: redis-server --appendonly yes
|
command: sh -c 'redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
redis-data:
|
redis-data:
|
||||||
driver: local
|
driver: local
|
||||||
Loading…
Reference in New Issue
Block a user