Files
computer-playbook/roles/web-app-suitecrm/templates/docker-compose.yml.j2
Kevin Veen-Birkenbach d7e0123af2 SuiteCRM LDAP integration fixes:
- Correct LDAP attribute FIRSTNAME changed to givenName
- Add automated ldap.yaml rendering and bind mount
- Create LDAP extension directory inside container
- Adjust docker-compose.yml for proper LDAP config mount
- Add strict formatting template for ldap.yaml
- Update paths for SUITECRM_LDAP_CONFIG_HOST and SUITECRM_LDAP_EXTENSION_DIR

Details: https://chatgpt.com/share/6928375d-1458-800f-bcc3-b3364ea69078
2025-11-27 12:35:07 +01:00

30 lines
1.1 KiB
Django/Jinja

{% include 'roles/docker-compose/templates/base.yml.j2' %}
{% set service_name = SUITECRM_SERVICE %}
{{ service_name }}:
{{ lookup('template', 'roles/docker-container/templates/build.yml.j2') | indent(4) }}
container_name: {{ SUITECRM_CONTAINER }}
image: "{{ SUITECRM_CUSTOM_IMAGE }}"
init: true
stop_signal: SIGTERM
stop_grace_period: 30s
{% include 'roles/docker-container/templates/base.yml.j2' %}
{% include 'roles/docker-container/templates/healthcheck/curl.yml.j2' %}
ports:
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:80"
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
{% include 'roles/docker-container/templates/networks.yml.j2' %}
volumes:
- data:/var/www/html/
{% if SUITECRM_LDAP_ENABLED | bool %}
# Readonly isn't possible for LDAP config, because otherwise file permission script will fail
- "{{ SUITECRM_LDAP_CONFIG_HOST }}:{{ SUITECRM_LDAP_EXTENSION_DIR }}/ldap.yaml"
{% endif %}
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
data:
name: {{ SUITECRM_DATA_VOLUME }}
{% include 'roles/docker-compose/templates/networks.yml.j2' %}