Sign inSign up

stibbons31/docker-keycloak-pg

By stibbons31

Updated over 9 years ago

Use Keycloak Postgres compatible with dockerhub image (to use inside a Mesos infra)

Image
0

146

stibbons31/docker-keycloak-pg repository overview

Keycloak PostgreSQL

Extends the Keycloak docker image to use PostgreSQL

Usage

Start a PostgreSQL instance

First start a PostgreSQL instance using the PostgreSQL docker image:

docker run --name postgres -e POSTGRES_DATABASE=keycloak -e POSTGRES_USER=keycloak -e POSTGRES_PASSWORD=password -e POSTGRES_ROOT_PASSWORD=root_password -d postgres
Start a Keycloak instance

Start a Keycloak instance and connect to the PostgreSQL instance:

docker run --name keycloak --link postgres:postgres jboss/keycloak-postgres
Environment variables

When starting the Keycloak instance you can pass a number of environment variables to configure how it connects to PostgreSQL. For example:

docker run --name keycloak --link postgres:postgres -e POSTGRES_DATABASE=keycloak -e POSTGRES_USER=keycloak -e POSTGRES_PASSWORD=password jboss/keycloak-postgres
POSTGRES_DATABASE

Specify name of PostgreSQL database (optional, default is keycloak).

POSTGRES_USER

Specify user for PostgreSQL database (optional, default is keycloak).

POSTGRES_PASSWORD

Specify password for PostgreSQL database (optional, default is keycloak).

Tag summary

Content type

Image

Digest

Size

312.9 MB

Last updated

over 9 years ago

docker pull stibbons31/docker-keycloak-pg:3.1.0.Final-pg