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:
parent
a5cf4d53c5
commit
d591305629
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue