mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-28 03:19:59 +00:00
Merge pull request #734 from vincentrou/fix-docs-quick-start-local
Some checks failed
Development Build / extract-version (push) Has been cancelled
Tests / Backend Tests (push) Has been cancelled
Tests / Frontend Tests (push) Has been cancelled
Development Build / build-regular (push) Has been cancelled
Development Build / build-single (push) Has been cancelled
Development Build / summary (push) Has been cancelled
Some checks failed
Development Build / extract-version (push) Has been cancelled
Tests / Backend Tests (push) Has been cancelled
Tests / Frontend Tests (push) Has been cancelled
Development Build / build-regular (push) Has been cancelled
Development Build / build-single (push) Has been cancelled
Development Build / summary (push) Has been cancelled
Update docs quick start local
This commit is contained in:
commit
66a10996da
1 changed files with 10 additions and 5 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]
|
||||
|
||||
```
|
||||
|
||||
|
|
@ -225,8 +231,7 @@ Check if GPU is available:
|
|||
# Show available GPUs
|
||||
docker exec open-notebook-local-ollama-1 ollama ps
|
||||
|
||||
# Enable GPU in docker-compose.yml:
|
||||
# - OLLAMA_NUM_GPU=1
|
||||
# Enable GPU in docker-compose.yml
|
||||
```
|
||||
|
||||
Then restart: `docker compose restart ollama`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue