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