diff --git a/docs/guide/installation.md b/docs/guide/installation.md index e04a8252..43c412dc 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -159,6 +159,14 @@ mkdir data docker run --detach --publish 5000:5000 --name lnbits --volume ${PWD}/.env:/app/.env --volume ${PWD}/data/:/app/data lnbits/lnbits ``` +The LNbits Docker image comes with no extensions installed. User-installed extensions will be stored by default in a container directory. +It is recommended to point the `LNBITS_EXTENSIONS_PATH` environment variable to a directory that is mapped to a Docker volume. This way, the extensions will not be reinstalled when the container is destroyed. +Example: + +```sh +docker run ... -e "LNBITS_EXTENSIONS_PATH='/app/data/extensions'" --volume ${PWD}/data/:/app/data ... +``` + Build the image yourself. ```sh