Update surrealdb user and add gpu for ollama
Added user root for surrealdb service and nvidia GPU support in ollama service.
This commit is contained in:
parent
89eac04c63
commit
ff3525e46b
1 changed files with 9 additions and 3 deletions
|
|
@ -32,6 +32,7 @@ services:
|
|||
surrealdb:
|
||||
image: surrealdb/surrealdb:v2
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 rocksdb:/mydata/mydatabase.db
|
||||
user: root
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
|
|
@ -65,10 +66,15 @@ services:
|
|||
- "11434:11434"
|
||||
volumes:
|
||||
- ./ollama_models:/root/.ollama
|
||||
environment:
|
||||
# Optional: set GPU support if available
|
||||
- OLLAMA_NUM_GPU=0
|
||||
restart: always
|
||||
# Optional: set GPU support if available
|
||||
#deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
# devices:
|
||||
# - driver: nvidia
|
||||
# count: 1
|
||||
# capabilities: [gpu]
|
||||
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue