From 69f8429cf16cf483361718cdc4504ae1a3031a41 Mon Sep 17 00:00:00 2001 From: John Gomersall Date: Thu, 9 Jan 2025 11:49:05 +0000 Subject: [PATCH] Ensure additional pro secret is passed to docker container Signed-off-by: John Gomersall --- .env | 1 + docker-compose-run.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.env b/.env index 0bf11433..22ea533f 100644 --- a/.env +++ b/.env @@ -43,6 +43,7 @@ KC_DB_PASSWORD=Secret123! CLIENTS=OFF,http://world.openfoodfacts.localhost OPFF,https://world.openpetfoodfacts.org OFF_PRO,http://world.pro.openfoodfacts.localhost # Generate specific secrets for the OFF and OFF_PRO clients so that they match the configuration in Product Opener for local development +# Make sure you also add these to docker-compose-run.yml OFF_CLIENT_SECRET=Cf4NdSAjZsNO9HLcuXeuvukzFu00roQa OFF_PRO_CLIENT_SECRET=1ILwRhBtNJJDQrHp8lR7yrP9S0N2W7al diff --git a/docker-compose-run.yml b/docker-compose-run.yml index 8fa4b0cb..1ec7e1ee 100644 --- a/docker-compose-run.yml +++ b/docker-compose-run.yml @@ -7,6 +7,7 @@ services: - KC_DB_PASSWORD # Explicitly set the client secret for testing - OFF_CLIENT_SECRET + - OFF_PRO_CLIENT_SECRET ports: - "${KEYCLOAK_EXPOSE}${KEYCLOAK_HTTP_PORT}:8080" - "${KEYCLOAK_EXPOSE}${KEYCLOAK_MANAGEMENT_PORT}:9000"