Skip to content

Instantly share code, notes, and snippets.

@ChakshuGautam
Created June 28, 2021 15:31
Show Gist options
  • Save ChakshuGautam/1bd94c8cc1472c62bcb1eb949bb7ba9a to your computer and use it in GitHub Desktop.
Save ChakshuGautam/1bd94c8cc1472c62bcb1eb949bb7ba9a to your computer and use it in GitHub Desktop.
Keycloak Docker Compose
version: "3.3"
services:
dbk:
image: postgres
ports:
- "16432:5432"
environment:
- POSTGRES_DB=registry
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
keycloak:
image: dockerhub/keycloak:1.23.3-generic
environment:
- DB_VENDOR=postgres
- DB_ADDR=dbk
- DB_PORT=5432
- DB_DATABASE=registry
- DB_USER=postgres
- DB_PASSWORD=postgres
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
# - ./keycloak-mobile-number-login-spi/themes:/opt/jboss/keycloak/themes/
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9990"]
interval: 30s
timeout: 10s
retries: 4
ports:
- "8080:8080"
- "9990:9990"
depends_on:
- dbk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment