mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: swingmusic
|
|
|
|
services:
|
|
swingmusic:
|
|
build: .
|
|
container_name: swingmusic
|
|
ports:
|
|
- "1970:1970"
|
|
volumes:
|
|
- ./music:/music
|
|
- ./config:/config
|
|
environment:
|
|
- DRAGONFLYDB_HOST=dragonfly
|
|
- DRAGONFLYDB_PORT=6379
|
|
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
|
|
restart: unless-stopped
|
|
networks:
|
|
- swingmusic-network
|
|
|
|
dragonfly:
|
|
image: docker.dragonflydb.io/dragonflydb/dragonfly
|
|
container_name: swingmusic-dragonfly
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- dragonfly_data:/data
|
|
restart: unless-stopped
|
|
command: --dir=/data --logtostdout --proactor_threads=${DRAGONFLY_THREADS:-4}
|
|
networks:
|
|
- swingmusic-network
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
dragonfly_data:
|
|
driver: local
|
|
|
|
networks:
|
|
swingmusic-network:
|
|
driver: bridge
|