Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.16 KB

File metadata and controls

53 lines (34 loc) · 1.16 KB

Local PostgreSQL

Custom PostgreSQL image used by the local-dev Compose stack. Ships a pre-seeded keycloak database.


Build


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 .

Run standalone


If you want this container running on its own, outside the Compose stack, create the shared network once:

docker network create local-network

Then run it:

docker run -d --name local-postgres --network local-network -v postgres-data:/var/lib/postgresql/data -p 5432:5432 local-postgres:latest

For the normal multi-service setup, use the Compose entry in local-dev/README_LOCAL_DEV.md instead.

Credentials


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.