49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
catalog-export:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: local/music-server:latest
|
|
command:
|
|
[
|
|
"python",
|
|
"scripts/export_catalog_read.py",
|
|
"--source-db",
|
|
"/source/catalogsync.db",
|
|
"--target-db",
|
|
"/app/data/catalog_read.db"
|
|
]
|
|
volumes:
|
|
- ../data:/app/data
|
|
- /volume4/Music_Cloud/catalogsync/data/catalogsync.db:/source/catalogsync.db:ro
|
|
|
|
music-server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: local/music-server:latest
|
|
container_name: music-server
|
|
restart: unless-stopped
|
|
env_file:
|
|
- ../config/music_server.env
|
|
ports:
|
|
- "18081:8000"
|
|
volumes:
|
|
- ../config:/app/config:ro
|
|
- ../data:/app/data
|
|
- /volume4/Music_Cloud/library:/music_library:ro
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"python",
|
|
"-c",
|
|
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=5).read()"
|
|
]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|