keycloak: Adjust configuration for quarkus distribution

This commit is contained in:
saibotk 2022-02-12 20:14:14 +01:00
parent a3f9ea4852
commit d8ae5f5911
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 9 additions and 13 deletions

View file

@ -52,7 +52,7 @@ keycloak_database_user: "keycloak"
keycloak_database_password: "{{ lookup('passwordstore', keycloak_domain + '/database' + ' create=true') }}"
# The default welcome theme keycloak will use
keycloak_theme_welcome: "keycloak"
keycloak_theme_welcome: "{{ omit }}"
# The SELinux level that should be used for the postgres data folder/container
keycloak_postgres_selinux_level: "{{ omit }}"

View file

@ -40,24 +40,20 @@ services:
{% endif %}
environment:
- "PROXY_ADDRESS_FORWARDING=true"
- "KEYCLOAK_HOSTNAME={{ keycloak_domain }}"
- "KEYCLOAK_LOGLEVEL={{ keycloak_log_level }}"
- "ROOT_LOGLEVEL={{ keycloak_root_log_level }}"
{% if keycloak_theme_welcome is defined %}
- "KEYCLOAK_WELCOME_THEME={{ keycloak_theme_welcome }}"
{% endif %}
- "DB_VENDOR=postgres"
- "DB_ADDR=database"
- "DB_USER={{ keycloak_database_user }}"
- "DB_PASSWORD={{ keycloak_database_password }}"
- "KC_PROXY=edge"
- "KC_FEATURES=scripts,upload-scripts"
- "KC_HOSTNAME={{ keycloak_domain }}"
- "KC_LOGLEVEL={{ keycloak_log_level }}"
- "KC_DB_URL_HOST=database"
- "KC_DB_USERNAME={{ keycloak_database_user }}"
- "KC_DB_PASSWORD={{ keycloak_database_password }}"
networks:
backend:
{% if proxy_network is defined %}
{{ proxy_network }}:
{% endif %}
command: ["--features=scripts,upload_scripts"]
command: ["start --auto-build --db=postgres"{% if keycloak_theme_welcome != omit %}, "--spi-theme-welcome-theme={{ keycloak_theme_welcome }}"{% endif %}]
restart: always
database: