Fix docker compose for gpu
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user