Run with default password, export port 8000
docker run -p 8000:8000 stephanel/icecast-kh
$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 stephanel/icecast-kh
Run with custom configuration
docker run -p 8000:8000 -v /local/path/to/icecast.xml:/etc/icecast.xml stephanel/icecast-kh
Extends Dockerfile
FROM stephanel/icecast-kh
ADD ./icecast.xml /etc/icecast.xml
Docker-compose
icecast:
image: stephanel/icecast-kh
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_LOCATION=Earth
- ICECAST_ADMIN=john@doe.com
- ICECAST_HOSTNAME=stream.doe.com
ports:
- 8000:8000