2021-01-24 22:42:56 +01:00
|
|
|
# {{ ansible_managed }}
|
2021-01-27 02:02:33 +01:00
|
|
|
# version: "3.8"
|
2021-01-24 22:42:56 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: jboss/keycloak
|
|
|
|
container_name: keycloak
|
|
|
|
restart: always
|
2021-01-26 00:11:28 +01:00
|
|
|
environment:
|
2021-01-27 01:23:23 +01:00
|
|
|
- USER_UID={{ getent_passwd["keycloak"].1 }}
|
|
|
|
- USER_GID={{ getent_passwd["keycloak"].2 }}
|
2021-01-26 00:11:28 +01:00
|
|
|
- "KEYCLOAK_USER=${USERNAME}"
|
|
|
|
- "KEYCLOAK_PASSWORD=${PASSWORD}"
|
2021-01-26 20:44:28 +01:00
|
|
|
volumes:
|
|
|
|
- ./certificates:/etc/x509/https
|
2021-01-31 18:17:11 +01:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2021-01-24 22:42:56 +01:00
|
|
|
ports:
|
2021-01-27 02:02:33 +01:00
|
|
|
- "{{ keycloak_https_port }}:8443"
|