From 20f691d48577fa3e41e5ab86019ac3523b1ff24c Mon Sep 17 00:00:00 2001 From: Simon Engmann Date: Tue, 30 Apr 2024 09:22:43 +0200 Subject: [PATCH] build(sovity-daps): use Keycloak dev in Compose Without start-dev, Keycloak tries to require HTTPS even in local setups, even with KC_HTTP_ENABLED=true. --- README.md | 2 ++ docker-compose.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 4e4d40f..f14f70e 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,8 @@ the following environment variable adjustments are needed: - `KC_PROXY=edge` - `KC_HOSTNAME=keycloak.example.com` +Additionally, the `start-dev` command should be removed from the `docker-compose.yml`. + Further configuration options can be found in the official [Keycloak documentation](https://www.keycloak.org/server/all-config). ## Realm Configuration diff --git a/docker-compose.yml b/docker-compose.yml index 5ebb0e5..eb12428 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ services: keycloak: build: . + command: [start-dev] restart: always environment: KC_DB: postgres