Fix db url issue (#863)

Newer keycloak versions auto-build on `kc.sh start`. This leads to loss of correct usage of postgres db. If we pass `--optimized` parameter to it, keycloak will take the already build file with KC_DB=postgres and it should work.
This commit is contained in:
dennemark 2023-02-11 03:28:29 +01:00 committed by GitHub
parent a5cf4d53c5
commit d591305629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ services:
- ENV KC_DB_URL=jdbc:postgresql://srv-captain--$$cap_appname-db/keycloak - ENV KC_DB_URL=jdbc:postgresql://srv-captain--$$cap_appname-db/keycloak
- ENV KC_DB_USERNAME=keycloak - ENV KC_DB_USERNAME=keycloak
- ENV KC_DB_PASSWORD=$$cap_pg_pass - ENV KC_DB_PASSWORD=$$cap_pg_pass
- ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", "--hostname=$$cap_appname.$$cap_root_domain", "--proxy=edge"] - ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", "--optimized --hostname=$$cap_appname.$$cap_root_domain", "--proxy=edge"]
caproverOneClickApp: caproverOneClickApp:
variables: variables:
@ -46,8 +46,8 @@ caproverOneClickApp:
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- id: $$cap_keycloak_version - id: $$cap_keycloak_version
label: Keycloak Version label: Keycloak Version
defaultValue: 18.0.2 defaultValue: 20.0.3
description: v18.0.2 current as of 2022-07-04. Check out their Docker page for the valid tags https://quay.io/repository/keycloak/keycloak?tab=tags description: v20.0.3 current as of 2023-01-13. Check out their Docker page for the valid tags https://quay.io/repository/keycloak/keycloak?tab=tags
validRegex: /^([^\s^\/])+$/ validRegex: /^([^\s^\/])+$/
- id: $$cap_pg_pass - id: $$cap_pg_pass
label: Postgres Password label: Postgres Password