Developers · Run it yourself
Docker image reference
Image tags, Compose files, volumes, build arguments and what the image sets.
The Mirli image runs the server and the web UI in one container. To start it, see Run Mirli in Docker.
Tags
| Tag | Contents |
|---|---|
ghcr.io/hamsanders/soundbox:latest |
CPU build, amd64. About 3.5 GB. |
ghcr.io/hamsanders/soundbox:cuda |
NVIDIA build. About 10 GB, most of it the CUDA runtime. |
:v<VERSION>, for example :v0.4.0 |
A release, CPU build. |
:v<VERSION>-cuda, for example :v0.4.0-cuda |
A release, NVIDIA build. |
To pin a release, change the image: line in docker-compose.yml.
Compose files
| File | Adds |
|---|---|
docker-compose.yml |
The service, its port on 127.0.0.1:17494, its two volumes and an example SOUNDBOX_ALLOWED_HOSTS, using the prebuilt CPU image. |
docker-compose.cuda.yml |
The CUDA image and GPU access. |
docker-compose.build.yml |
Builds the image from the checkout instead of pulling it. |
docker-compose.build-cuda.yml |
With docker-compose.build.yml, builds the CUDA image. |
Dockerfile.slim |
Not a Compose file: a build without audio.cpp. It sets MIRLI_DISABLE=local_models. |
Volumes
| Path in the container | Contents |
|---|---|
/data |
The whole data folder, the same as ~/.mirli outside Docker. See Data folder. |
/data/models |
The model weights, mounted separately so they can live on another disk. |
The container runs as uid 1000. Named volumes work as they are. A host folder
must exist and be owned by 1000:1000 before the container starts; a folder
Docker creates is owned by root, and the server cannot write to it.
Build arguments
The image builds on
audio.cpp's own images,
ghcr.io/0xshug0/audio.cpp:full-<BACKEND>, which carry audiocpp_cli, its
backend libraries and ffmpeg. Mirli adds Node and the server.
| Argument | Values |
|---|---|
AUDIOCPP_TAG |
full-cpu (default). full-cuda12: CUDA 12.9, needs driver 575 or newer on GeForce cards. full-cuda13: for newer drivers. full-vulkan: AMD and Intel GPUs. Upstream's tags move daily; a dated tag such as full-cuda12-<DATE>-<SHA> gives a reproducible build. |
AUDIOCPP_BACKEND |
cpu (default), cuda or vulkan. The backend audio.cpp is asked for. It is set, not detected, so a CPU image started with --gpus does not ask for a CUDA backend it lacks. |
For example, to build and run a CUDA image by hand:
docker build -t soundbox:cuda \
--build-arg AUDIOCPP_TAG=full-cuda12 --build-arg AUDIOCPP_BACKEND=cuda .
docker run -d --gpus all -p 127.0.0.1:17494:17494 \
-v soundbox-data:/data -v soundbox-models:/data/models soundbox:cudaA Vulkan image runs with --device /dev/dri and the host's render and
video groups added.
Inside the image
| Setting | Value |
|---|---|
--host |
0.0.0.0, because a published port cannot reach loopback inside a container. Unless MIRLI_API_TOKEN is set, the server logs a warning about binding beyond loopback on every start. |
| Port | 17494 |
| audio.cpp | Set through SOUNDBOX_AUDIOCPP_BIN, the older spelling of MIRLI_AUDIOCPP_BIN, so soundbox model install audiocpp is never needed. |
| Prompt assistant | The managed llama-server is not included. Point the assistant at an external OpenAI-compatible endpoint. |
Host names and the MCP endpoint
Because the server binds 0.0.0.0 in the container, the Host check for the
web UI and /api/* is off. /mcp still accepts only loopback and the names
in MIRLI_ALLOWED_HOSTS, so http://localhost:17494/mcp from the Docker host
works and any other name answers 403. To reach /mcp by a LAN address or
a proxy name, list it:
docker run -d -p 127.0.0.1:17494:17494 -v soundbox-data:/data \
-e MIRLI_ALLOWED_HOSTS=mirli.lan,192.168.1.20:17494 \
ghcr.io/hamsanders/soundbox:latestA proxy that rewrites Host to 127.0.0.1 also passes, but forwarding the
original name and listing it is clearer. See
Host checks.