Merge pull request #400 from lfnovo/fix/surrealdb-persistent-storage
fix: use persistent rocksdb storage instead of memory in docker-compose docs
This commit is contained in:
commit
b045694992
4 changed files with 13 additions and 7 deletions
|
|
@ -26,9 +26,11 @@ Create a new folder `open-notebook` and add this file:
|
||||||
services:
|
services:
|
||||||
surrealdb:
|
surrealdb:
|
||||||
image: surrealdb/surrealdb:v2
|
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:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- ./surreal_data:/mydata
|
||||||
|
|
||||||
open_notebook:
|
open_notebook:
|
||||||
image: lfnovo/open_notebook:v1-latest
|
image: lfnovo/open_notebook:v1-latest
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,11 @@ Create a new folder `open-notebook-local` and add this file:
|
||||||
services:
|
services:
|
||||||
surrealdb:
|
surrealdb:
|
||||||
image: surrealdb/surrealdb:v2
|
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:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- ./surreal_data:/mydata
|
||||||
|
|
||||||
open_notebook:
|
open_notebook:
|
||||||
image: lfnovo/open_notebook:v1-latest-single
|
image: lfnovo/open_notebook:v1-latest-single
|
||||||
|
|
@ -68,6 +70,7 @@ services:
|
||||||
# Optional: set GPU support if available
|
# Optional: set GPU support if available
|
||||||
- OLLAMA_NUM_GPU=0
|
- OLLAMA_NUM_GPU=0
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**That's it!** No API keys, no secrets, completely private.
|
**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:
|
services:
|
||||||
surrealdb:
|
surrealdb:
|
||||||
image: surrealdb/surrealdb:v2
|
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:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- ./surreal_data:/mydata
|
||||||
|
|
||||||
open_notebook:
|
open_notebook:
|
||||||
image: lfnovo/open_notebook:v1-latest
|
image: lfnovo/open_notebook:v1-latest
|
||||||
|
|
@ -48,6 +50,7 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- surrealdb
|
- surrealdb
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Edit the file:**
|
**Edit the file:**
|
||||||
|
|
|
||||||
|
|
@ -36,11 +36,11 @@ Create a folder `open-notebook` and add this file:
|
||||||
services:
|
services:
|
||||||
surrealdb:
|
surrealdb:
|
||||||
image: surrealdb/surrealdb:v2
|
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:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- surreal_data:/mydata
|
- ./surreal_data:/mydata
|
||||||
|
|
||||||
open_notebook:
|
open_notebook:
|
||||||
image: lfnovo/open_notebook:v1-latest
|
image: lfnovo/open_notebook:v1-latest
|
||||||
|
|
@ -66,8 +66,6 @@ services:
|
||||||
- surrealdb
|
- surrealdb
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
volumes:
|
|
||||||
surreal_data:
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Edit the file:**
|
**Edit the file:**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue