Skip to content

Instantly share code, notes, and snippets.

@agrakhov

agrakhov/keycloak.yml

Last active Jan 3, 2018
Embed
What would you like to do?
# https://hub.docker.com/r/jboss/keycloak/
# https://hub.docker.com/r/dpage/pgadmin4/
# https://hub.docker.com/_/postgres/
# https://docs.docker.com/compose/environment-variables/
# https://gist.github.com/jmkgreen/b79f95c3eca2eac3fb66c66d12017f07
version: '3'
services:
pgadmin:
image: dpage/pgadmin4:latest
ports:
- 5000:80
environment:
- PGADMIN_DEFAULT_EMAIL=root@root.com
- PGADMIN_DEFAULT_PASSWORD=pwd
volumes:
- ./data/pgadmin:/var/lib/pgadmin
postgres:
image: postgres:10.1-alpine
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=kcpwd
- POSTGRESQL_ADMIN_PASSWORD=adminpwd
volumes:
- ./data/postgres:/var/lib/pgsql/data
keycloak:
image: jboss/keycloak:3.4.2.Final
ports:
- 8080:8080
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- POSTGRES_PORT_5432_TCP_ADDR=postgres
- POSTGRES_PORT_5432_TCP_PORT=5432
- POSTGRES_DATABASE=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=kcpwd
depends_on:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment