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:
Rousseau Vincent 2026-04-08 10:22:33 +02:00 committed by GitHub
parent 89eac04c63
commit ff3525e46b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]
```