Icecast2 Dockerfile
Run with default password, export port 8000
docker run -p 8000:8000 moul/icecast
$BROWSER localhost:8000
Run with custom password
docker run -p 8000:8000 -e ICECAST_SOURCE_PASSWORD=aaaa -e ICECAST_ADMIN_PASSWORD=bbbb -e ICECAST_PASSWORD=cccc -e ICECAST_RELAY_PASSWORD=dddd -e ICECAST_HOSTNAME=noise.example.com moul/icecast
Run with custom configuration
docker run -p 8000:8000 -v /local/path/to/icecast/config:/etc/icecast2 moul/icecast
docker run -p 8000:8000 -v /local/path/to/icecast.xml:/etc/icecast2/icecast.xml moul/icecast
Extends Dockerfile
FROM moul/icecast
ADD ./icecast.xml /etc/icecast2
Docker-compose
icecast:
image: moul/icecast
volumes:
- logs:/var/log/icecast2
- /etc/localtime:/etc/localtime:ro
environment:
- ICECAST_SOURCE_PASSWORD=aaa
- ICECAST_ADMIN_PASSWORD=bbb
- ICECAST_PASSWORD=ccc
- ICECAST_RELAY_PASSWORD=ddd
- ICECAST_HOSTNAME=noise.example.com
ports:
- 8000:8000