Fix docker compose for gpu

This commit is contained in:
Ettore Di Giacinto
2025-04-08 22:28:21 +02:00
parent 45fbfed030
commit 3f83f5c4b0

View File

@@ -18,6 +18,7 @@ services:
environment:
# Enable if you have a single GPU which don't fit all the models
- LOCALAI_SINGLE_ACTIVE_BACKEND=true
- DEBUG=true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/readyz"]
interval: 10s
@@ -25,8 +26,6 @@ services:
retries: 20
ports:
- 8081:8080
environment:
- DEBUG=true
volumes:
- ./volumes/models:/build/models:cached
- ./volumes/images:/tmp/generated/images