Skip to content

Fast local LLM inference on plain CPUs. No GPU, 8 GB of RAM. OpenAI-compatible server.

docker: add docker-compose.yml with a model volume and /health check (#8)

Thomas088c19e82480
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..5bfd42e
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,26 @@
+# Minimal Docker Compose setup for openset-llm
+# Ensures at least 8 GB of RAM is available to the Docker VM / container.
+#
+# docker compose up --build
+# curl http://127.0.0.1:8080/health
+
+services:
+ openset-llm:
+ build:
+ context: .
+ dockerfile: Dockerfile
+ image: openset-llm:local
+ ports:
+ - "127.0.0.1:8080:8080"
+ volumes:
+ - openset-llm-models:/data/models
+ restart: unless-stopped
+ healthcheck:
+ test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/health >/dev/null || exit 1"]
+ interval: 15s
+ timeout: 5s
+ retries: 5
+ start_period: 180s
+
+volumes:
+ openset-llm-models: