Skip to content
docker-compose.yml 878 B
Newer Older
# vim:ff=unix:ts=2:sw=2:ai:expandtab
nimrod's avatar
nimrod committed
---
version: '3.5'
nimrod's avatar
nimrod committed
services:
nimrod's avatar
nimrod committed
  ldap:
    build:
      context: slapd/
    volumes:
      - _run_ldap:/run/slapd
      - ldap:/var/lib/ldap
    environment:
nimrod's avatar
nimrod committed
      LDAP_ROOTPASS: "${LDAP_ROOTPASS:-foo}"
      LDAP_DOMAIN: "${LDAP_DOMAIN:-nowhere.com}"
      LDAP_ORGANIZATION: "${LDAP_ORGANIZATION:-none}"
  nss-pam-ldapd:
    build:
      context: nss-pam-ldapd/
    command: /usr/sbin/nslcd --debug --nofork
    environment:
nimrod's avatar
nimrod committed
      LDAP_BASE_DN: "${LDAP_BASE_DN:-dc=nowhere,dc=com}"
    volumes:
      - _run_ldap:/run/slapd
  ldap-account-manager:
    build:
      context: ldap-account-manager/
    links:
nimrod's avatar
nimrod committed
      - ldap
    volumes:
      - _run_ldap:/run/slapd
      - ldap-account-manager:/var/lib/ldap-account-manager
    ports:
      - 80:80
nimrod's avatar
nimrod committed
volumes:
  _run_ldap:
  ldap:
  ldap-account-manager: