Files
mopidy-docker/docker-compose.yml
Colin Powell 9d19c5d443 Parameterize compose per instance and add Spotify credential refresh script
Every clone can now override COMPOSE_PROJECT_NAME, CONTAINER_NAME, MPD_PORT,
HTTP_PORT, MOPIDY_CONFIG and MUSIC_DIR via .env to run an isolated Mopidy
instance (see .env.example). scripts/refresh-spotify-creds.py regenerates the
librespot credentials blob for whichever instance the local .env points at.
2026-09-20 12:44:11 -04:00

22 lines
712 B
YAML

services:
mopidy:
build: .
image: mopidy:4
container_name: ${CONTAINER_NAME:-mopidy}
restart: unless-stopped
init: true
environment:
EXTRA_PIP_PACKAGES: "${EXTRA_PIP_PACKAGES:-https://code.lab.unbl.ink/secstate/mopidy-webhooks/archive/0.2.3.zip Mopidy-Muse mopidy-bandcamp mopidy-party mopidy-soundcloud mopidy-api-explorer setuptools<81}"
volumes:
- "${MOPIDY_CONFIG:-./config/mopidy.conf}:/etc/mopidy/mopidy.conf:ro"
- "${MUSIC_DIR:-./music}:/var/lib/mopidy/media:ro"
- mopidy-data:/var/lib/mopidy
- mopidy-cache:/var/cache/mopidy
ports:
- "${MPD_PORT:-6600}:6600"
- "${HTTP_PORT:-6680}:6680"
volumes:
mopidy-data:
mopidy-cache: