From a9a88c9290a033c7d4c159c4a7ea45e1931536b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sun, 22 Jan 2023 10:20:41 +0100 Subject: [PATCH] Keycloak integration --- docker-compose.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b3ec37b..ce424d9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: - ./:/app/ depends_on: - postgres + - keycloak env_file: - env @@ -26,5 +27,25 @@ services: env_file: - env + keycloak_db: + image: postgres:13-alpine + volumes: + - postgres_data:/var/lib/postgresql/data/ + env_file: + - env + + keycloak: + image: "quay.io/keycloak/keycloak:20.0" + restart: "unless-stopped" + command: + - "start-dev" + - "--db=postgres" + - "--db-url=jdbc:postgresql://keycloak_db:5432/postgres" + - "--db-username=postgres" + - "--db-password=postgres" + - "--hostname=localhost" + - "--http-relative-path=/auth" + + volumes: postgres_data: