-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
78 lines (73 loc) · 2.16 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '2'
services:
samba:
image: andrespp/samba-ldap
container_name: samba
restart: unless-stopped
environment:
- SAMBA_LDAP_PASSWORD=admin
ports:
- "137:137"
- "138:138"
- "139:139"
- "445:445"
volumes:
- ./config/samba/libnss-ldap.conf:/etc/libnss-ldap.conf:ro
- ./config/samba/smb.conf:/etc/samba/smb.conf:ro
- ./config/samba/smbldap.conf:/etc/smbldap-tools/smbldap.conf:ro
- ./config/samba/smbldap_bind.conf:/etc/smbldap-tools/smbldap_bind.conf:ro
- ./data/samba/public:/mnt/public
- ./data/samba/documents:/mnt/documents
depends_on:
- openldap
openldap:
image: osixia/openldap:1.5.0
container_name: openldap
restart: unless-stopped
environment:
LDAP_LOG_LEVEL: "256"
LDAP_ORGANISATION: "Example Inc."
LDAP_DOMAIN: "base"
LDAP_BASE_DN: ""
LDAP_ADMIN_PASSWORD: "admin"
LDAP_CONFIG_PASSWORD: "config"
LDAP_READONLY_USER: "false"
LDAP_RFC2307BIS_SCHEMA: "false"
LDAP_BACKEND: "mdb"
LDAP_TLS: "true"
LDAP_TLS_CRT_FILENAME: "ldap.crt"
LDAP_TLS_KEY_FILENAME: "ldap.key"
LDAP_TLS_DH_PARAM_FILENAME: "dhparam.pem"
LDAP_TLS_CA_CRT_FILENAME: "ca.crt"
LDAP_TLS_ENFORCE: "false"
LDAP_TLS_CIPHER_SUITE: "SECURE256:-VERS-SSL3.0"
LDAP_TLS_VERIFY_CLIENT: "demand"
LDAP_REPLICATION: "false"
KEEP_EXISTING_CONFIG: "false"
LDAP_REMOVE_CONFIG_AFTER_SETUP: "true"
LDAP_SSL_HELPER_PREFIX: "ldap"
tty: true
stdin_open: true
volumes:
- ./config/slapd/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom
- ./data/ldap:/var/lib/ldap
- ./data/slapd.d:/etc/ldap/slapd.d
- ./data/certs:/container/service/slapd/assets/certs/
ports:
- "389:389"
- "636:636"
command: --copy-service
domainname: "example.org"
hostname: "ldap-server"
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin
restart: unless-stopped
environment:
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
PHPLDAPADMIN_HTTPS: "false"
ports:
- "8000:80"
- "8443:443"
depends_on:
- openldap