fix: use persistent rocksdb storage instead of memory in docker-compose docs
Changed SurrealDB configuration from in-memory storage to RocksDB with bind mounts for data persistence. Users' data will now survive container restarts. Fixes #398
This commit is contained in:
parent
76827af53f
commit
fd03122aa3
4 changed files with 13 additions and 7 deletions
|
|
@ -26,9 +26,11 @@ Create a new folder `open-notebook` and add this file:
|
|||
services:
|
||||
surrealdb:
|
||||
image: surrealdb/surrealdb:v2
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 memory
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 rocksdb:/mydata/mydatabase.db
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./surreal_data:/mydata
|
||||
|
||||
open_notebook:
|
||||
image: lfnovo/open_notebook:v1-latest
|
||||
|
|
|
|||
|
|
@ -31,9 +31,11 @@ Create a new folder `open-notebook-local` and add this file:
|
|||
services:
|
||||
surrealdb:
|
||||
image: surrealdb/surrealdb:v2
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 memory
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 rocksdb:/mydata/mydatabase.db
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./surreal_data:/mydata
|
||||
|
||||
open_notebook:
|
||||
image: lfnovo/open_notebook:v1-latest-single
|
||||
|
|
@ -68,6 +70,7 @@ services:
|
|||
# Optional: set GPU support if available
|
||||
- OLLAMA_NUM_GPU=0
|
||||
restart: always
|
||||
|
||||
```
|
||||
|
||||
**That's it!** No API keys, no secrets, completely private.
|
||||
|
|
|
|||
|
|
@ -23,9 +23,11 @@ Create a new folder `open-notebook` and add this file:
|
|||
services:
|
||||
surrealdb:
|
||||
image: surrealdb/surrealdb:v2
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 memory
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 rocksdb:/mydata/mydatabase.db
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./surreal_data:/mydata
|
||||
|
||||
open_notebook:
|
||||
image: lfnovo/open_notebook:v1-latest
|
||||
|
|
@ -48,6 +50,7 @@ services:
|
|||
depends_on:
|
||||
- surrealdb
|
||||
restart: always
|
||||
|
||||
```
|
||||
|
||||
**Edit the file:**
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@ Create a folder `open-notebook` and add this file:
|
|||
services:
|
||||
surrealdb:
|
||||
image: surrealdb/surrealdb:v2
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 memory
|
||||
command: start --user root --pass password --bind 0.0.0.0:8000 rocksdb:/mydata/mydatabase.db
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- surreal_data:/mydata
|
||||
- ./surreal_data:/mydata
|
||||
|
||||
open_notebook:
|
||||
image: lfnovo/open_notebook:v1-latest
|
||||
|
|
@ -66,8 +66,6 @@ services:
|
|||
- surrealdb
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
surreal_data:
|
||||
```
|
||||
|
||||
**Edit the file:**
|
||||
|
|
|
|||
Loading…
Reference in a new issue