This commit is contained in:
Tomas Dvorak
2026-04-02 10:16:30 +02:00
parent 0cabd3bf1c
commit ab01f915c3
15 changed files with 325 additions and 21 deletions
+38
View File
@@ -0,0 +1,38 @@
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