Skip to content
docker-compose.yml 1012 B
Newer Older
nimrod's avatar
nimrod committed
---
version: '3.5'
nimrod's avatar
nimrod committed
services:
    slapd:
        build:
            context: slapd/
        volumes:
            - _run_ldap:/run/slapd
            - ldap:/var/lib/ldap
        environment:
            LDAP_ROOTPASS: foo
            LDAP_DOMAIN: nowhere.com
            LDAP_ORGANIZATION: none
        networks: &networks
            - shore
nimrod's avatar
nimrod committed
        build:
            context: nss-pam-ldapd/
        command: /usr/sbin/nslcd --debug --nofork
        environment:
            LDAP_BASE_DN: 'dc=nowhere,dc=com'
        volumes:
            - _run_ldap:/run/slapd
        networks: *networks

    ldap-account-manager:
        build:
            context: ldap-account-manager/
nimrod's avatar
nimrod committed
        links:
            - slapd
        volumes:
            - _run_ldap:/run/slapd
            - ldap-account-manager:/var/lib/ldap-account-manager
nimrod's avatar
nimrod committed
        ports:
            - 80:80
        networks: *networks
nimrod's avatar
nimrod committed
volumes:
    _run_ldap:
    ldap:
    ldap-account-manager:

networks:
    shore:
        name: shore