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
- Docker Hub
docker pull pltnk/icecast2
- GitHub Packages
docker pull ghcr.io/pltnk/icecast2
- Quay.io
docker pull quay.io/pltnk/icecast2
- Docker Hub
- Build the image yourself
docker build -t pltnk/icecast2 github.com/pltnk/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 \
pltnk/icecast2
icecast2:
image: pltnk/icecast2
container_name: icecast2
restart: always
ports:
- 8000:8000
volumes:
- /path/to/your/icecast.xml:/etc/icecast2/icecast.xml