Skip to content

Instantly share code, notes, and snippets.

@gabriel-srodrigues
Created November 14, 2021 16:14
Show Gist options
  • Select an option

  • Save gabriel-srodrigues/6e1bb69b2be1f0c26e228b61a5cfeba1 to your computer and use it in GitHub Desktop.

Select an option

Save gabriel-srodrigues/6e1bb69b2be1f0c26e228b61a5cfeba1 to your computer and use it in GitHub Desktop.
Um gist para a composição do keycloak
version: '3.8'
services:
postgres:
image: postgres
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: quay.io/keycloak/keycloak:latest
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Pa55w0rd
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- 18080:8080
depends_on:
- postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment