ansible/roles/install_keycloak/templates/docker-compose.yml.j2

19 lines
477 B
Text
Raw Normal View History

2021-01-24 22:42:56 +01:00
# {{ ansible_managed }}
# 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:
- 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:
- "{{ keycloak_https_port }}:8443"