Sign inSign up

jdwlabs/authdb

By jdwlabs

•Updated 4 days ago

PostgreSQL image with jdwlabs auth schema initialization scripts.

Image
0

2.0K

jdwlabs/authdb repository overview

⁠jdwlabs/authdb

PostgreSQL image with jdwlabs auth schema initialization scripts.

Docker Image Version Docker Image Size Docker Pulls

⁠What it is

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.

⁠Quick start

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.

⁠Exposed ports

PortPurpose
5432PostgreSQL

⁠Environment variables

NameDefaultPurpose
POSTGRES_USERdefault_usersuperuser name
POSTGRES_PASSWORDdefault_passwordsuperuser password
POSTGRES_DBjdwdatabase created on init

Override the defaults in any non-local environment.

⁠Tags

TagMeaning
latestmost recent release
{version}specific semver (e.g. 1.2.3)

⁠Source & license

Source: https://github.com/jdwlabs/apps⁠ License: PolyForm Noncommercial 1.0.0

Tag summary

Content type

Image

Digest

sha256:a297b86bb…

Size

154.9 MB

Last updated

4 days ago

docker pull jdwlabs/authdb