Custom PostgreSQL image used by the local-dev Compose stack. Ships a pre-seeded
keycloakdatabase.
Run from the project root.
docker build -f ./local-dev/postgresql/Dockerfile -t local-postgres:latest .Without cache:
docker build --no-cache -f ./local-dev/postgresql/Dockerfile -t local-postgres:latest .If you want this container running on its own, outside the Compose stack, create the shared network once:
docker network create local-networkThen run it:
docker run -d --name local-postgres --network local-network -v postgres-data:/var/lib/postgresql/data -p 5432:5432 local-postgres:latestFor the normal multi-service setup, use the Compose entry in local-dev/README_LOCAL_DEV.md instead.
| Field | Value |
|---|---|
| User | postgres |
| Password | local |
| Port | 5432 |
The image also initialises a second user keycloak (password local) with an imported data dump; see the Keycloak
notes in local-dev/README_LOCAL_DEV.md.