ansible/roles/install_keycloak/templates/docker-compose.yml.j2
Jean-Marie Mineau 5ce47146ba sync time
2021-01-31 18:17:11 +01:00

18 lines
477 B
Django/Jinja

# {{ ansible_managed }}
# version: "3.8"
services:
server:
image: jboss/keycloak
container_name: keycloak
restart: always
environment:
- USER_UID={{ getent_passwd["keycloak"].1 }}
- USER_GID={{ getent_passwd["keycloak"].2 }}
- "KEYCLOAK_USER=${USERNAME}"
- "KEYCLOAK_PASSWORD=${PASSWORD}"
volumes:
- ./certificates:/etc/x509/https
- /etc/localtime:/etc/localtime:ro
ports:
- "{{ keycloak_https_port }}:8443"