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
|
|
@ -30,11 +30,10 @@
|
|||
<fileserve>1</fileserve>
|
||||
|
||||
<paths>
|
||||
<basedir>/usr/share/icecast2</basedir>
|
||||
<logdir>/var/log/icecast2</logdir>
|
||||
<webroot>/usr/share/icecast2/web</webroot>
|
||||
<adminroot>/usr/share/icecast2/admin</adminroot>
|
||||
<pidfile>/var/run/icecast2/icecast2.pid</pidfile>
|
||||
<basedir>/usr/share/icecast</basedir>
|
||||
<logdir>/var/log/icecast</logdir>
|
||||
<webroot>/usr/share/icecast/web</webroot>
|
||||
<adminroot>/usr/share/icecast/admin</adminroot>
|
||||
<alias source="/" destination="/status.xsl"/>
|
||||
</paths>
|
||||
|
||||
|
|
|
|||
|
|
@ -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