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:
|
surrealdb:
|
||||||
image: surrealdb/surrealdb:v2
|
image: surrealdb/surrealdb:v2
|
||||||
command: start --user root --pass password --bind 0.0.0.0:8000 rocksdb:/mydata/mydatabase.db
|
command: start --user root --pass password --bind 0.0.0.0:8000 rocksdb:/mydata/mydatabase.db
|
||||||
|
user: root
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
@ -65,10 +66,15 @@ services:
|
||||||
- "11434:11434"
|
- "11434:11434"
|
||||||
volumes:
|
volumes:
|
||||||
- ./ollama_models:/root/.ollama
|
- ./ollama_models:/root/.ollama
|
||||||
environment:
|
|
||||||
# Optional: set GPU support if available
|
|
||||||
- OLLAMA_NUM_GPU=0
|
|
||||||
restart: always
|
restart: always
|
||||||
|
# Optional: set GPU support if available
|
||||||
|
#deploy:
|
||||||
|
# resources:
|
||||||
|
# reservations:
|
||||||
|
# devices:
|
||||||
|
# - driver: nvidia
|
||||||
|
# count: 1
|
||||||
|
# capabilities: [gpu]
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue