mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: swingmusic
|
|
|
|
services:
|
|
swingmusic:
|
|
image: ${SWINGMUSIC_IMAGE:-swingmusic-local:latest}
|
|
container_name: swingmusic
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${SWINGMUSIC_PORT:-1970}:1970"
|
|
environment:
|
|
DRAGONFLYDB_HOST: dragonfly
|
|
DRAGONFLYDB_PORT: "6379"
|
|
SWINGMUSIC_CLIENT_DIR: /app/client
|
|
volumes:
|
|
- ${SWINGMUSIC_MUSIC_DIR:-/DATA/Media/Music}:/music
|
|
- ${SWINGMUSIC_CONFIG_DIR:-/DATA/AppData/swingmusic/config}:/config
|
|
depends_on:
|
|
- dragonfly
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:1970/healthz', timeout=3)"]
|
|
interval: 20s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
dragonfly:
|
|
image: docker.dragonflydb.io/dragonflydb/dragonfly
|
|
container_name: swingmusic-dragonfly
|
|
restart: unless-stopped
|
|
command: --dir=/data --logtostdout
|
|
ports:
|
|
- "${DRAGONFLY_PORT:-6379}:6379"
|
|
volumes:
|
|
- ${SWINGMUSIC_DRAGONFLY_DIR:-/DATA/AppData/swingmusic/dragonfly}:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|