Created
November 7, 2020 09:05
-
-
Save s1moe2/b154ff546c5a0025e2f2cac4336fdafb to your computer and use it in GitHub Desktop.
Keycloak+PostgreSQL docker compose
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: '3' | |
services: | |
postgres-kc: | |
container_name: keycloak-db | |
image: postgres:12 | |
volumes: | |
- ./db:/var/lib/postgresql/data | |
environment: | |
POSTGRES_DB: keycloak | |
POSTGRES_USER: keycloak | |
POSTGRES_PASSWORD: password | |
keycloak: | |
container_name: keycloak | |
image: jboss/keycloak:latest | |
environment: | |
DB_VENDOR: postgres | |
DB_ADDR: keycloak-db | |
DB_DATABASE: keycloak | |
DB_USER: keycloak | |
DB_SCHEMA: public | |
DB_PASSWORD: password | |
KEYCLOAK_USER: admin | |
KEYCLOAK_PASSWORD: somepwssword | |
ports: | |
- 7777:8080 | |
depends_on: | |
- postgres-kc | |
networks: | |
default: | |
external: | |
name: ${YOUR-NET} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment