Skip to content

Commit 4855f88

Browse files
authored
docs: docker volume when using local db and blockstore (#9630)
1 parent 11f0017 commit 4855f88

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/src/howto/deploy/onprem.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@ This section assumes that you already have a PostgreSQL >= 11.0 database accessi
8484
!!! info
8585
Notice that the lakeFS Blockstore type is set to `s3` - This configuration works with S3-compatible storage engines such as [MinIO](https://min.io/){: target="blank" }.
8686

87+
!!! tip "Local Database and Local Blockstore"
88+
When using local database (`LAKEFS_DATABASE_TYPE=local`) and local blockstore (`LAKEFS_BLOCKSTORE_TYPE=local`),
89+
lakeFS stores all data and metadata under `${HOME}/lakefs` in the container by default (configurable).
90+
You can mount this location to the host using Docker volumes to persist data and metadata on host storage:
91+
92+
```sh
93+
docker run \
94+
--name lakefs \
95+
-p 8000:8000 \
96+
-v /path/on/host:/home/lakefs/lakefs \
97+
-e LAKEFS_DATABASE_TYPE="local" \
98+
-e LAKEFS_BLOCKSTORE_TYPE="local" \
99+
-e LAKEFS_AUTH_ENCRYPT_SECRET_KEY="[ENCRYPTION_SECRET_KEY]" \
100+
treeverse/lakefs:latest run
101+
```
87102

88103
See the [reference][config-envariables] for a complete list of environment variables.
89104

0 commit comments

Comments
 (0)