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