You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
keycloak-db:
|
|
|
|
container_name: keycloak-db
|
|
|
|
image: postgres:13
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /mnt/containers/keycloak/container-data/db:/var/lib/postgresql/data:Z
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: keycloak
|
|
|
|
POSTGRES_USER: keycloak
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
|
|
keycloak:
|
|
|
|
container_name: keycloak
|
|
|
|
image: quay.io/keycloak/keycloak:latest
|
|
|
|
restart: always
|
|
|
|
entrypoint: ["/opt/keycloak/bin/kc.sh", "start"]
|
|
|
|
environment:
|
|
|
|
DB_VENDOR: POSTGRES
|
|
|
|
DB_ADDR: keycloak-db
|
|
|
|
DB_DATABASE: keycloak
|
|
|
|
DB_USER: keycloak
|
|
|
|
DB_SCHEMA: public
|
|
|
|
DB_PASSWORD: ${POSTGRES_PASSWORD}
|
|
|
|
KEYCLOAK_USER: admin
|
|
|
|
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
depends_on:
|
|
|
|
- keycloak-db
|