Created
December 4, 2018 03:56
-
-
Save collegeimprovements/7cd182d2c730744a155057e3fb228530 to your computer and use it in GitHub Desktop.
KeyCloak with Postgres. Ref: https://github.com/jboss-dockerfiles/keycloak/blob/master/docker-compose-examples/keycloak-postgres.yml
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
| version: "3" | |
| services: | |
| postgres: | |
| image: postgres:11.1 | |
| volumes: | |
| - ./postgres_data:/var/lib/postgresql/data | |
| environment: | |
| POSTGRES_DB: keycloak | |
| POSTGRES_USER: keycloak | |
| POSTGRES_PASSWORD: keycloak | |
| restart: always | |
| keycloak: | |
| image: jboss/keycloak:4.6.0.Final | |
| environment: | |
| DB_VENDOR: POSTGRES | |
| DB_ADDR: postgres | |
| DB_DATABASE: keycloak | |
| DB_USER: keycloak | |
| DB_PASSWORD: keycloak | |
| KEYCLOAK_USER: admin | |
| KEYCLOAK_PASSWORD: admin | |
| volumes: | |
| - ./pgdata:/var/lib/postgresql/data | |
| - ./backups:/backups | |
| ports: | |
| - 8080:8080 | |
| depends_on: | |
| - postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment