feat: add liquidsoap service to compose
This commit is contained in:
parent
b23f957ecb
commit
1203c10cd0
1 changed files with 27 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue