fix: correct paths and healthcheck for libretime/icecast image
- fix config paths from icecast2 to icecast (correct for this image) - fix mount target to /etc/icecast.xml (not /etc/icecast2/icecast.xml) - replace wget healthcheck with bash /dev/tcp (wget absent in container)
This commit is contained in:
parent
13bc038004
commit
4899bf5c00
2 changed files with 6 additions and 8 deletions
|
|
@ -9,10 +9,9 @@ services:
|
|||
volumes:
|
||||
- type: bind
|
||||
source: ./config/icecast.xml
|
||||
target: /etc/icecast2/icecast.xml
|
||||
read_only: true
|
||||
target: /etc/icecast.xml
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'wget -q -O- http://localhost:8000/status-json.xsl | grep -q icestats']
|
||||
test: ['CMD', 'bash', '-c', 'exec 3<>/dev/tcp/localhost/8000 && printf "GET /status-json.xsl HTTP/1.0\r\nHost: localhost\r\n\r\n" >&3 && grep -q icestats <&3']
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue