diff --git a/docker-compose.yml b/docker-compose.yml index 13739d3..fc9d24c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,4 +18,30 @@ services: retries: 3 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