Commit f87f1b7e authored by nimrod's avatar nimrod
Browse files

Set default value for phpLDAPadmin to use ldapi as the ldap host.

parent 44aa2406
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ services:
        volumes:
            - _run_ldap:/run/slapd
        environment:
            PLA_HOST: ldapi://%2frun%2fslapd%2fldapi
            PLA_BASE_DN: 'dc=nowhere,dc=com'
            PLA_BIND_ID: 'cn=admin,dc=nowhere,dc=com'
        ports:
+1 −0
Original line number Diff line number Diff line
@@ -6,5 +6,6 @@ RUN apk add --update --no-cache phpldapadmin php5-apache2 php5-openssl && \

COPY --chown=root:root config.php /usr/share/webapps/phpldapadmin/config/
COPY --chown=root:root phpldapadmin.conf /etc/apache2/conf.d/
ENV PLA_HOST=ldapi://%2frun%2fslapd%2fldapi
CMD [ "httpd", "-DFOREGROUND" ]
HEALTHCHECK CMD wget --spider --quiet http://localhost/htdocs/index.php || exit 1