2025-08-16 14:26:36 +00:00
|
|
|
version: "3.9"
|
|
|
|
|
services:
|
|
|
|
|
localai:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: localai
|
|
|
|
|
ports:
|
2025-08-16 14:35:15 +00:00
|
|
|
- "8085:8080"
|
2025-08-16 14:26:36 +00:00
|
|
|
environment:
|
|
|
|
|
- MODELS_PATH=/models
|
|
|
|
|
- THREADS=2 # ajustez selon vos cores (léger par défaut)
|
|
|
|
|
- CONTEXT_SIZE=1024 # contexte réduit pour tests
|
|
|
|
|
- DEBUG=false
|
2025-08-16 14:57:08 +00:00
|
|
|
- DISABLE_DOWNLOAD=false
|
2025-08-16 14:26:36 +00:00
|
|
|
command: ["--models-path", "/models", "--address", "0.0.0.0:8080"]
|
|
|
|
|
healthcheck:
|
2025-08-16 14:38:43 +00:00
|
|
|
test: ["CMD", "curl", "-fsS", "http://localhost:8080/v1/models"]
|
2025-08-16 14:26:36 +00:00
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 10
|