Dockerfile for running Liquidsoap in a container.
Just mount your Liquidsoap script, music directory and you are good to go!
Works well with containerized icecast2: pltnk/docker-icecast2
- Pull the image from one of public Docker registries, supported tags:
1.4.4
,2.0.0
,latest
- Docker Hub
docker pull pltnk/liquidsoap
- GitHub Packages
docker pull ghcr.io/pltnk/liquidsoap
- Quay.io
docker pull quay.io/pltnk/liquidsoap
- Docker Hub
- Build the image yourself
docker build -t pltnk/liquidsoap github.com/pltnk/docker-liquidsoap
- Add build arg
LIQUIDSOAP_VERSION
to specify the version of Liquidsoap to use in the image, check available versions here.
Example:docker build -t pltnk/liquidsoap:1.4.4 --build-arg LIQUIDSOAP_VERSION=1.4.4 github.com/pltnk/docker-liquidsoap
- Mount your Liquidsoap script file to
/etc/liquidsoap/script.liq
- Mount your music directory to
/music
- In your Liquidsoap script change path to your music directory to
/music
docker run --name liquidsoap -d --restart=always \
--volume /path/to/your/script.liq:/etc/liquidsoap/script.liq \
--volume /path/to/your/music:/music \
pltnk/liquidsoap
liquidsoap:
image: pltnk/liquidsoap
container_name: liquidsoap
restart: always
volumes:
- /path/to/your/script.liq:/etc/liquidsoap/script.liq
- /path/to/your/music:/music