From ae45c1b95881c61ceac683f01d4e7f4d357c6505 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 30 Jun 2025 16:27:44 +0300 Subject: [PATCH] doc: `LNBITS_EXTENSIONS_PATH ` (#3229) --- docs/guide/installation.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index e04a82522..43c412dc5 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