From e623d674cd4b2b575675000d1653cc902a29ab5d Mon Sep 17 00:00:00 2001 From: Jared Smith Date: Tue, 3 May 2022 07:51:07 +1000 Subject: [PATCH] keycloak init --- keycloak/docker-compose.yaml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 keycloak/docker-compose.yaml diff --git a/keycloak/docker-compose.yaml b/keycloak/docker-compose.yaml new file mode 100644 index 0000000..c2fd6ca --- /dev/null +++ b/keycloak/docker-compose.yaml @@ -0,0 +1,41 @@ +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} + networks: + - keycloak-nw + keycloak: + container_name: keycloak + image: quay.io/keycloak/keycloak:latest + restart: always + 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} + PROXY_ADDRESS_FORWARDING: 'true' + # ports: + # - 8080:8080 + depends_on: + - keycloak-db + networks: + - reverseproxy-nw + - keycloak-nw + +networks: + keycloak-nw: + reverseproxy-nw: + external: true