This is a PostgreSQL database, configured to store LemonLDAP::NG configuration and persistent sessions.
<number>
: PostgreSQL major version<number>-bookworm
: postgres tag used as source of this image
- PG_DATABASE: lemonldapng
- PG_USER: lemonldap
- PG_PASSWORD: lemonldap
- PG_TABLE: lmConfig
- PG_PERSISTENT_SESSIONS_TABLE: psessions
- PG_SESSIONS_TABLE: sessions
- PG_SAML_TABLE: samlsessions
- PG_OIDC_TABLE: oidcsessions
- PG_CAS_TABLE: cassessions
and all variables from postgres:bookworm. Note that you should set
POSTGRES_PASSWORD
variable (root password)
If /llng-conf/conf.json
exists, the database will be initialized with this
configuration. You can use docker "volumes" for this:
$ docker run -v /path/to/conf.json:/llng-conf/conf.json yadd/lemonldap-ng-pg-database
If you want to initialize the database in a remote Postgres Database, modify the POSTGRES_*
variables and override the container Entrypoint. Example:
POSTGRES_HOST: postgresql.namespace.default.svc.cluster.local # Kubernetes
# POSTGRES_HOST: postgresql.us-west-2.rds.amazonaws.com # AWS RDS
# POSTGRES_HOST: postgresql.database.cloud.ovh.net # OVH Cloud
POSTGRES_PORT: 20814
POSTGRES_USER: your-admin-account
POSTGRES_DB: your-admin-db
PGPASSWORD: your-admin-password
$ docker run /docker-entrypoint-initdb.d/init-user-db.sh ---env-file=env yadd/lemonldap-ng-pg-database
Note:
PGPASSWORD
env is used by the psql client at runtime.
- Repository: github.com/guimard/llng-docker
- Dockerfile
- Issues database
Copyright:
- 2018-2024, Xavier Guimard [email protected]
- 2023-2024, LINAGORA https://linagora.com
License: GNU General Public License v2.0