1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 02:14:48 +00:00
This commit is contained in:
CrazyMax 2026-01-21 00:47:59 +00:00 committed by GitHub
commit 80e215353a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,7 @@ ___
* [Live Config](#live-config)
* [Notes](#notes)
* [LNMS command](#lnms-command)
* [Additional env configuration](#additional-env-configuration)
* [Validate](#validate)
* [Dispatcher service container](#dispatcher-service-container)
* [Syslog-ng container](#syslog-ng-container)
@ -307,6 +308,33 @@ manage users, database migration, and more, type:
$ docker compose exec librenms lnms
```
### Additional env configuration
After the first launch, `/data/.env` file is created and contains the following
environment variables:
```
APP_KEY=base64:...
NODE_ID=...
```
You can add additional environment variables in this file. For example, if you
want to set VAPID keys for Web push notifications (required for browser
authentication), you can do:
```console
$ docker compose exec librenms sh -c "lnms webpush:vapid --show >> /data/.env"
```
Content of `/data/.env` file will look like this:
```
APP_KEY=base64:...
NODE_ID=...
VAPID_PUBLIC_KEY=...
VAPID_PRIVATE_KEY=...
```
### Validate
If you want to validate your installation from the CLI, type the following