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>
|
<fileserve>1</fileserve>
|
||||||
|
|
||||||
<paths>
|
<paths>
|
||||||
<basedir>/usr/share/icecast2</basedir>
|
<basedir>/usr/share/icecast</basedir>
|
||||||
<logdir>/var/log/icecast2</logdir>
|
<logdir>/var/log/icecast</logdir>
|
||||||
<webroot>/usr/share/icecast2/web</webroot>
|
<webroot>/usr/share/icecast/web</webroot>
|
||||||
<adminroot>/usr/share/icecast2/admin</adminroot>
|
<adminroot>/usr/share/icecast/admin</adminroot>
|
||||||
<pidfile>/var/run/icecast2/icecast2.pid</pidfile>
|
|
||||||
<alias source="/" destination="/status.xsl"/>
|
<alias source="/" destination="/status.xsl"/>
|
||||||
</paths>
|
</paths>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,9 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ./config/icecast.xml
|
source: ./config/icecast.xml
|
||||||
target: /etc/icecast2/icecast.xml
|
target: /etc/icecast.xml
|
||||||
read_only: true
|
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue