From 4899bf5c00cd8f360ea775e3f5ae1601c3956a7b Mon Sep 17 00:00:00 2001 From: devilreef Date: Wed, 29 Apr 2026 23:49:22 +0600 Subject: [PATCH] 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) --- config/icecast.xml.tmpl | 9 ++++----- docker-compose.yml | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/config/icecast.xml.tmpl b/config/icecast.xml.tmpl index 41d4ae7..c7aa55e 100644 --- a/config/icecast.xml.tmpl +++ b/config/icecast.xml.tmpl @@ -30,11 +30,10 @@ 1 - /usr/share/icecast2 - /var/log/icecast2 - /usr/share/icecast2/web - /usr/share/icecast2/admin - /var/run/icecast2/icecast2.pid + /usr/share/icecast + /var/log/icecast + /usr/share/icecast/web + /usr/share/icecast/admin diff --git a/docker-compose.yml b/docker-compose.yml index 127b783..ba2cb40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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