Skip to content

Instantly share code, notes, and snippets.

@maztaim
Last active May 7, 2023 09:07
Show Gist options
  • Save maztaim/011bb52db53061aba61db0973e58da00 to your computer and use it in GitHub Desktop.
Save maztaim/011bb52db53061aba61db0973e58da00 to your computer and use it in GitHub Desktop.
Postgresql with Keycloak podman compose file
version: '3'
services:
db:
image: docker.io/library/postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: My super secret.
POSTGRES_DB: keycloak
volumes:
- ./postgresql-data:/var/lib/postgresql/data:Z
keycloak:
image: quay.io/keycloak/keycloak
ports:
- "8080:8080"
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: My super secret.
DB_VENDOR: postgres
DB_ADDR: localhost:5432
DB_DATABSE: keycloak
DB_USER: keycloak
DB_PASSWORD: My super secret.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment