Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 2.16 KB

README.md

File metadata and controls

62 lines (47 loc) · 2.16 KB

yadd/lemonldap-ng-pg-database

This is a PostgreSQL database, configured to store LemonLDAP::NG configuration and persistent sessions.

Tags

  • <number>: PostgreSQL major version
  • <number>-bookworm: postgres tag used as source of this image

Variables with default values:

  • 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)

Initialize configuration

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

Initialize configuration - Remote Postgres

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 and bug reports

Copyright and license

Copyright:

License: GNU General Public License v2.0