Created
December 30, 2025 21:12
-
-
Save lucakiebel/07d6ec6c64a2b6148b51972ec0cc7c4c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| db: | |
| image: postgres:13-alpine | |
| environment: | |
| POSTGRES_USER: "postgres" | |
| POSTGRES_PASSWORD: "password" | |
| POSTGRES_DB: "keycloak" | |
| restart: "unless-stopped" | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U postgres"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 5 | |
| volumes: | |
| - ./postgres:/var/lib/postgresql/data | |
| keycloak: | |
| image: quay.io/keycloak/keycloak:24.0.1 | |
| # command: "start-dev" # run in "dev" mode with theme caching disabled | |
| command: "start" | |
| container_name: keycloak | |
| restart: "unless-stopped" | |
| ports: | |
| - "8010:8080" | |
| environment: | |
| KC_DB: postgres | |
| KC_DB_URL: "jdbc:postgresql://db/keycloak" | |
| KC_DB_USERNAME: postgres | |
| KC_DB_PASSWORD: password | |
| KC_HEALTH_ENABLED: true | |
| KEYCLOAK_ADMIN: admin | |
| KEYCLOAK_ADMIN_PASSWORD: admin | |
| KEYCLOAK_HTTP_PORT: 8080 | |
| PROXY_ADDRESS_FORWARDING: 'true' | |
| #KC_HOSTNAME: "auth.example.com" | |
| #KC_PROXY: "edge" | |
| JAVA_OPTS: "-Xms64m -Xmx4G -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8" | |
| KEYCLOAK_LOGLEVEL: DEBUG | |
| depends_on: | |
| db: | |
| condition: service_healthy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment