Simple Dockerfile for running icecast2 in a container.
Just mount your icecast.xml file and you are good to go!
Works well with containerized Liquidsoap: pltnk/docker-liquidsoap
- Pull the image from one of public Docker registries
- GitHub Packages
docker pull ghcr.io/nfrelink/icecast2
- GitHub Packages
- Build the image yourself
docker build -t nfrelink/icecast2 github.com/nfrelink/docker-icecast2
- Mount your icecast.xml to
/etc/icecast2/icecast.xml - Publish necessary ports
docker run --name icecast2 -d --restart=always \
--publish 8000:8000 \
--volume /path/to/your/icecast.xml:/etc/icecast2/icecast.xml \
ghcr.io/nfrelink/icecast2
services:
icecast2:
image: ghcr.io/nfrelink/icecast2
container_name: icecast2
restart: always
ports:
- 8000:8000
volumes:
- /path/to/your/icecast.xml:/etc/icecast2/icecast.xml