Skip to content

Commit 4bb99a4

Browse files
committed
Database recommendations #1092
1 parent 4eae0c9 commit 4bb99a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

website/Install/Configuration.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ SilverBullet requires a database backend to (potentially) keep various types of
6161
Currently, only two databases are supported: [Deno KV](https://deno.com/kv) and a dummy in-memory database.
6262

6363
## Deno KV database
64-
When self-hosting SilverBullet (that is, on any server other than on [[Install/Deno Deploy]]), KV uses a local SQLite file to keep data. This is efficient and performant.
64+
When self-hosting SilverBullet (that is, on any server other than on [[Install/Deno Deploy]]), KV uses a local SQLite file to keep data. This is efficient and performant, at least if your disk is.
65+
66+
If you are hosting your space on a NAS, you may consider storing the database somewhere else. You can do this by setting the `SB_KV_DB` path to a path outside your space, e.g. `SB_KV_DB=/var/lib/silverbullet/silverbullet.db`
67+
68+
If you use [[Install/Docker]], and set `SB_KV_DB`, make sure you bind mount an external folder into your container for this data to be persistent, e.g. by passing `-v /var/lib/space_db:/var/lib/silverbullet` to your `docker run` command.
6569

6670
KV can be configured as follows:
6771

0 commit comments

Comments
 (0)