63 lines
2 KiB
YAML
63 lines
2 KiB
YAML
---
|
|
keycloak_compose_dir: '/srv/keycloak-compose'
|
|
keycloak_image: 'quay.io/keycloak/keycloak'
|
|
keycloak_version: '25.0.2'
|
|
keycloak_command: '"start-dev"' # set to "start" to run in production mode
|
|
keycloak_db_name: 'keycloak'
|
|
keycloak_db_user: 'keycloak'
|
|
keycloak_db_password: 'password'
|
|
keycloak_db_host: 'postgres'
|
|
keycloak_db_port: '5432'
|
|
keycloak_docker_postgres: 'true'
|
|
keycloak_env:
|
|
- key: 'POSTGRES_VERSION'
|
|
value: '15.7-alpine'
|
|
- key: 'KC_DB'
|
|
value: 'postgres'
|
|
- key: 'KC_DB_USERNAME'
|
|
value: '{{ keycloak_db_user }}'
|
|
- key: 'KC_DB_PASSWORD'
|
|
value: '{{ keycloak_db_password }}'
|
|
- key: 'KC_DB_URL'
|
|
value: '"jdbc:postgresql://{{ keycloak_db_host }}:{{ keycloak_db_port }}/{{ keycloak_db_name }}"'
|
|
- key: 'KC_METRICS_ENABLED'
|
|
value: 'true'
|
|
- key: 'KC_LOG_LEVEL'
|
|
value: 'INFO'
|
|
- key: 'KEYCLOAK_ADMIN'
|
|
value: 'admin'
|
|
- key: 'KEYCLOAK_ADMIN_PASSWORD'
|
|
value: 'changeme'
|
|
# Uncomment and modify below to add HTTPS certificates:
|
|
### - key: 'KC_HTTPS_CERTIFICATE_FILE'
|
|
### value: '"/etc/letsencrypt/live/localhost/fullchain.pem"'
|
|
### - key: 'KC_HTTPS_CERTIFICATE_KEY_FILE'
|
|
### value: '"/etc/letsencrypt/live/localhost/privkey.pem"'
|
|
- key: 'KC_HOSTNAME'
|
|
value: 'http://localhost'
|
|
env_only: 'true'
|
|
- key: 'KC_PORT'
|
|
value: '8080'
|
|
env_only: 'true'
|
|
# Uncomment and modify below if you use a proxy
|
|
### - key: 'KC_PROXY_HEADERS'
|
|
### value: 'xforwarded'
|
|
|
|
keycloak_ports:
|
|
- '${KC_PORT}:8080'
|
|
# to disable, add empty 'keycloak_volumes' variable to your host_vars
|
|
# Below array mounts path directory volume to a mountpoint on the container
|
|
keycloak_volumes:
|
|
# - mountpath: '/etc/letsencrypt/live/localhost/'
|
|
# mountpoint: '/etc/letsencrypt/live/localhost'
|
|
# perm: 'ro'
|
|
|
|
# to disable, add empty 'keycloak_extra_hosts' variable to your host_vars.
|
|
# Below array adds edditional hosts to /etc/hosts on the docker container
|
|
keycloak_extra_hosts:
|
|
# - hostname: 'example.lan'
|
|
# ip: '192.168.1.123'
|
|
|
|
keycloak_apt_list:
|
|
- python3-docker
|
|
- docker-compose-plugin
|