mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-21 17:03:49 +00:00
enable gpu
This commit is contained in:
parent
eabbe53aa6
commit
0b59b6030f
@ -33,10 +33,21 @@ services:
|
||||
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
container_name: ollama
|
||||
volumes:
|
||||
- ./models:/root/.ollama
|
||||
pull_policy: always
|
||||
tty: true
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 11434:11434
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities: [ gpu ]
|
||||
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
|
Loading…
Reference in New Issue
Block a user