Last active
June 22, 2022 09:36
-
-
Save stefanopascazi/f6ca929194cbf57f228d78ca03b94d54 to your computer and use it in GitHub Desktop.
Sample docker-compose for deploy a local Keycloak application
This file contains 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
version: '2' | |
services: | |
postgresql: | |
image: docker.io/bitnami/postgresql:11 | |
environment: | |
# ALLOW_EMPTY_PASSWORD is recommended only for development. | |
- ALLOW_EMPTY_PASSWORD=yes | |
- POSTGRESQL_USERNAME=bn_keycloak | |
- POSTGRESQL_DATABASE=bitnami_keycloak | |
volumes: | |
- 'postgresql_data:/bitnami/postgresql' | |
keycloak: | |
image: docker.io/bitnami/keycloak:18 | |
depends_on: | |
- postgresql | |
ports: | |
- "8481:8080" | |
- "8443:8443" | |
environment: | |
- KEYCLOAK_ADMIN_USER=admin | |
- KEYCLOAK_ADMIN_PASSWORD=password | |
volumes: | |
postgresql_data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment