matrix-terminal-posthog-cv/docker-compose.yaml
2026-08-11 14:40:16 +01:00

40 lines
892 B
YAML

services:
app:
build: .
ports:
- "8000:8000"
env_file:
- .env
environment:
- LLAMACPP_BASE_URL=http://llama-cpp:8080
depends_on:
llama-cpp:
condition: service_healthy
restart: unless-stopped
llama-cpp:
image: ghcr.io/ggml-org/llama.cpp:server
environment:
- HF_HOME=/models
command: >
-hf bartowski/Qwen_Qwen3.5-0.8B-GGUF:Q4_K_M
--host 0.0.0.0
--port 8080
-c 8192
--reasoning-budget 0
--chat-template-kwargs '{"enable_thinking": false}'
--no-mmproj-auto
volumes:
- llamacpp_models:/models
ports:
- "8080:8080"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8080/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10m # for slow downloads
volumes:
llamacpp_models: