Skip to content

Instantly share code, notes, and snippets.

@agrakhov
Last active January 3, 2018 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agrakhov/f97ec227c880bdf8e62137c488b9c9db to your computer and use it in GitHub Desktop.
Save agrakhov/f97ec227c880bdf8e62137c488b9c9db to your computer and use it in GitHub Desktop.
# 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