feat: add liquidsoap service to compose

This commit is contained in:
devilreef 2026-04-29 23:55:42 +06:00
parent b23f957ecb
commit 1203c10cd0
Signed by: devilreef
SSH key fingerprint: SHA256:UZisRr4iuXx+IhkbZnR655L2RWAT6o2rgbGv5F/6m3Y

View file

@ -18,4 +18,30 @@ services:
retries: 3 retries: 3
start_period: 10s start_period: 10s
# liquidsoap added in Task 6
liquidsoap:
image: savonet/liquidsoap:v2.3.3
restart: unless-stopped
env_file: config/liquidsoap.env
depends_on:
icecast:
condition: service_healthy
volumes:
- type: bind
source: /mnt/trashbox/denpa-radio/library
target: /library
read_only: true
- type: bind
source: ./config/liquidsoap.liq
target: /script.liq
read_only: true
- type: bind
source: ./data/now-playing
target: /now-playing
command: ['liquidsoap', '/script.liq']
healthcheck:
test: ['CMD-SHELL', 'pgrep liquidsoap || exit 1']
interval: 30s
timeout: 5s
retries: 3
start_period: 30s