Single-container LLM Server benchmarking stack — FastAPI backend + built Vite WebUI (port 8089)
439
A single-container LLM benchmarking stack that bundles:
/webui/dist so you can access the UI at the same address as the backendThis image is intended for reproducible local runs and CI workflows where you want a simple, single artifact that contains both the UI and backend.
Quick start (pull + run)
# pull the published image
docker pull jeffrouyer/llm-locust:latest
# run the container and forward port 8089
docker run --rm -p 8089:8089 jeffrouyer/llm-locust:latest
# open the web UI
open http://localhost:8089/ # or curl -fsS http://localhost:8089/ | head -n 8
Persisting model/tokenizer cache (recommended)
To avoid repeated downloads of tokenizer/model artifacts, mount a persistent volume:
docker volume create llm_locust_transformers_cache
docker run --rm -p 8089:8089 \
-e TRANSFORMERS_CACHE=/cache/transformers \
-v llm_locust_transformers_cache:/cache/transformers \
jeffrouyer/llm-locust:latest
Docker Compose (recommended for repeatable runs)
The repository provides a docker-compose.yml that defaults to this image. Run the published image (no local build):
DOCKER_IMAGE=jeffrouyer/llm-locust:latest docker compose up --no-build --force-recreate -d
Configuration & environment variables
/cache/transformers)Build-time / publishing variables (used by the repo's build.sh helper)
jeffrouyer/llm-locust:latest)true to push when using the helper scriptHealth & diagnostics
docker logs <container-id>If the built web UI appears missing, ensure your CI or build step built the web assets — the Dockerfile uses a multi-stage build that compiles the web UI in a separate stage.
CI / Release recommendations
latest + a release tag (e.g. v1.2.3 or commit-sha). The repository's build.sh supports RELEASE_TAG and AUTO_TAG to help with this.docker compose up --no-build in production to run the image from the registry instead of building locally.Troubleshooting
docker compose across different directories/projects, create the named volume used by the compose file:docker volume create llm_locust_transformers_cache
TRANSFORMERS_CACHE to a writable host directory or change ownership on the mounted volume.Feel free to copy this file into the Docker Hub README for jeffrouyer/llm-locust — I can also add a GitHub Actions workflow to build/tag/publish images automatically if you'd like.
Content type
Image
Digest
sha256:a742f3652…
Size
89.8 MB
Last updated
10 months ago
docker pull jeffrouyer/llm-locust