name: spotizerr services: spotizerr: image: cooldockerizer93/spotizerr volumes: - ./data:/app/data - ./downloads:/app/downloads # <-- Change this for your music library dir - ./logs:/app/logs # <-- Volume for persistent logs ports: - 7171:7171 build: context: . dockerfile: Dockerfile container_name: spotizerr-app restart: unless-stopped environment: - PUID=${PUID} # Replace with your desired user ID | Remove both if you want to run as root (not recommended, might result in unreadable files) - PGID=${PGID} # Replace with your desired group ID | The user must have write permissions in the volume mapped to /app/downloads - UMASK=${UMASK} # Optional: Sets the default file permissions for newly created files within the container. - REDIS_HOST=${REDIS_HOST} - REDIS_PORT=${REDIS_PORT} - REDIS_DB=${REDIS_DB} - REDIS_PASSWORD=${REDIS_PASSWORD} # Optional, Redis AUTH password. Leave empty if not using authentication - REDIS_URL=redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/${REDIS_DB} - REDIS_BACKEND=redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/${REDIS_DB} - EXPLICIT_FILTER=${EXPLICIT_FILTER} # Set to true to filter out explicit content - ENABLE_AUTH=${ENABLE_AUTH} # Set to true to enable authentication - JWT_SECRET=${JWT_SECRET} # Set to a random string for production - JWT_EXPIRATION_HOURS=${JWT_EXPIRATION_HOURS} # Set to 24 for 24 hours - DEFAULT_ADMIN_USERNAME=${DEFAULT_ADMIN_USERNAME} # Set to admin - DEFAULT_ADMIN_PASSWORD=${DEFAULT_ADMIN_PASSWORD} # Set to admin123 - SSO_ENABLED=${SSO_ENABLED} # Set to true to enable SSO - SSO_BASE_REDIRECT_URI=${SSO_BASE_REDIRECT_URI} # Set to http://127.0.0.1:7171/api/auth/sso/callback - FRONTEND_URL=${FRONTEND_URL} # Frontend URL for SSO redirects - DISABLE_REGISTRATION=${DISABLE_REGISTRATION} # Set to true to disable registration - GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID} # Google SSO client ID - GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET} # Google SSO client secret - GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID} # GitHub SSO client ID - GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET} # GitHub SSO client secret depends_on: - redis redis: image: redis:alpine container_name: spotizerr-redis restart: unless-stopped environment: - REDIS_PASSWORD=${REDIS_PASSWORD} volumes: - redis-data:/data command: redis-server --requirepass ${REDIS_PASSWORD} --appendonly yes volumes: redis-data: driver: local