36 lines
789 B
YAML
36 lines
789 B
YAML
version: '3'
|
|
|
|
volumes:
|
|
cache:
|
|
|
|
services:
|
|
librespot:
|
|
image: librespot
|
|
build:
|
|
context: ./librespot
|
|
container_name: librespot
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
volumes:
|
|
- ./librespot/config.toml:/app/config.toml
|
|
- cache:/app/cache
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget http://localhost:24877/instance --no-verbose --tries=1 || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
devices:
|
|
- /dev/snd:/dev/snd
|
|
|
|
|
|
librespot-to-mqtt:
|
|
image: librespot-to-mqtt
|
|
build:
|
|
context: ./librespot-to-mqtt
|
|
container_name: librespot-to-mqtt
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
volumes:
|
|
- ./librespot-to-mqtt/secrets.mjs:/app/secrets.mjs
|
|
depends_on:
|
|
- librespot |