docker run -d -p 8000:8000 --name icecast2 ianm2/icecast2_arm
Important
Modify icecast.xml from the automatically created volume or mount your file with '-v' variable (Ex. -v /directory/icecast.xml:/etc/icecast2/icecast.xml)
Important
In this section, you need to have all files what requests the 'volume' section in the docker-compose file
Copy the next text in a docker-compose.yaml file:
version: "3.7"
services:
icecast2:
image: ianm2/icecast2_arm
container_name: icecast2
volumes:
- /directory/icecast.xml:/etc/icecast2/icecast.xml
ports:
- 8000:8000
ezstream:
image: ianm2/ezstream_arm
container_name: ezstream
depends_on:
- icecast2
volumes:
- /directory/ezstream_mp3.xml:/etc/ezstream/ezstream_mp3.xml
- /directory_playlist/:/etc/ezstream/music/
- /directory/playlist.txt:/etc/ezstream/playlist.txt
restart: unless-stopped
Run the next command:
docker-compose up -d