2023-12-22 09:11:40 +01:00
|
|
|
services:
|
2025-01-26 22:16:58 +01:00
|
|
|
|
|
|
|
{% include 'roles/docker-oauth2-proxy/templates/container.yml.j2' %}
|
|
|
|
|
2025-02-03 11:44:13 +01:00
|
|
|
{{applications.ldap.webinterface}}:
|
|
|
|
container_name: {{applications.ldap.webinterface}}
|
2025-01-22 17:45:37 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
restart: {{docker_restart_policy}}
|
2025-02-03 11:44:13 +01:00
|
|
|
{% if applications.ldap.webinterface == 'lam' %}
|
|
|
|
image: ghcr.io/ldapaccountmanager/lam:{{applications.ldap.lam.version}} # Dies ist das Docker-Image für LAM
|
2025-01-22 17:45:37 +01:00
|
|
|
ports:
|
|
|
|
- 127.0.0.1:{{http_port}}:80
|
2025-02-04 22:37:07 +01:00
|
|
|
env_file:
|
|
|
|
- "{{docker_compose.directories.env}}lam.env"
|
2025-01-22 17:45:37 +01:00
|
|
|
|
2025-02-03 11:44:13 +01:00
|
|
|
{% elif applications.ldap.webinterface == 'phpldapadmin' %}
|
|
|
|
image: leenooks/phpldapadmin:{{applications.ldap.phpldapadmin.version}}
|
2025-01-21 16:50:43 +01:00
|
|
|
ports:
|
|
|
|
- 127.0.0.1:{{http_port}}:8080
|
2025-02-04 22:37:07 +01:00
|
|
|
env_file:
|
|
|
|
- "{{docker_compose.directories.env}}phpldapadmin.env"
|
2025-01-22 17:45:37 +01:00
|
|
|
{% endif %}
|
2023-12-22 09:11:40 +01:00
|
|
|
openldap:
|
2025-02-03 11:44:13 +01:00
|
|
|
image: bitnami/openldap:{{applications.ldap.openldap.version}}
|
2025-01-26 22:16:58 +01:00
|
|
|
container_name: openldap
|
2025-02-04 22:37:07 +01:00
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2025-02-06 17:15:33 +01:00
|
|
|
{% if applications.ldap.openldap.expose_to_internet | bool %}
|
2023-12-22 09:11:40 +01:00
|
|
|
ports:
|
2025-01-21 23:33:24 +01:00
|
|
|
- 127.0.0.1:{{ldap_localhost_port}}:{{ldap_localhost_port}} # Expose just on localhost so that nginx stream proxy can use it
|
|
|
|
- 127.0.0.1:{{ldap_secure_localhost_port}}:{{ldap_secure_localhost_port}} # Expose just on localhost
|
2025-02-06 17:15:33 +01:00
|
|
|
{% endif %}
|
2025-01-21 12:41:44 +01:00
|
|
|
volumes:
|
2025-01-21 14:09:06 +01:00
|
|
|
- 'data:/bitnami/openldap'
|
2025-01-21 19:44:47 +01:00
|
|
|
healthcheck:
|
|
|
|
test: >
|
2025-02-03 11:44:13 +01:00
|
|
|
ldapsearch -x -H ldap://localhost:389 -b "{{ldap_root}}" -D "{{ldap_admin_dn}}" -w "{{applications.ldap.administrator_database_password}}"
|
2025-01-21 19:44:47 +01:00
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
start_period: 20s
|
2025-01-21 14:09:06 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2025-01-30 12:14:18 +01:00
|
|
|
|
2025-01-21 14:09:06 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
|
|
|
data:
|
|
|
|
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|