PostgreSQL image with jdwlabs auth schema initialization scripts.
2.0K
PostgreSQL image with jdwlabs auth schema initialization scripts.
A postgres:18.4 image that bundles the jdwlabs auth database bootstrap. The SQL in
/docker-entrypoint-initdb.d/ runs on first startup against an empty data directory,
creating the schema and seed data the jdwlabs/usersrole backend expects.
docker run -p 5432:5432 \
-e POSTGRES_USER=jdw \
-e POSTGRES_PASSWORD=change-me \
-e POSTGRES_DB=jdw \
jdwlabs/authdb:latest
The init scripts only run when the data volume is empty (standard Postgres behavior).
For persistence, mount the volume at /var/lib/postgresql (not the pre-18
/var/lib/postgresql/data path — the container refuses to start with anything
mounted there). A data directory initialized by an older major version is not
usable by this image; since the contents are pure seed data, delete the volume
and let the init scripts recreate it.
| Port | Purpose |
|---|---|
5432 | PostgreSQL |
| Name | Default | Purpose |
|---|---|---|
POSTGRES_USER | default_user | superuser name |
POSTGRES_PASSWORD | default_password | superuser password |
POSTGRES_DB | jdw | database created on init |
Override the defaults in any non-local environment.
| Tag | Meaning |
|---|---|
latest | most recent release |
{version} | specific semver (e.g. 1.2.3) |
Source: https://github.com/jdwlabs/apps License: PolyForm Noncommercial 1.0.0
Content type
Image
Digest
sha256:a297b86bb…
Size
154.9 MB
Last updated
4 days ago
docker pull jdwlabs/authdb