-
Notifications
You must be signed in to change notification settings - Fork 11
/
ldap-compose.yml
131 lines (131 loc) · 3.22 KB
/
ldap-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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: '2.1'
networks:
ldap-network:
proxy-network:
external:
name: "${PROXY_NETWORK}"
volumes:
openldap-etc-volume:
driver: "${VOLUME_DRIVER}"
openldap-repo-volume:
driver: "${VOLUME_DRIVER}"
lam-config-volume:
driver: "${VOLUME_DRIVER}"
smtp-relay-volume:
driver: "${VOLUME_DRIVER}"
services:
openldap:
image: openfrontier/openldap-server
restart: unless-stopped
logging:
driver: "journald"
networks:
- ldap-network
ports:
- "389"
volumes:
- openldap-etc-volume:/etc/ldap
- openldap-repo-volume:/var/lib/ldap
environment:
constraint:volume.driver: =${VOLUME_DRIVER}
SLAPD_PASSWORD: ${LDAP_PWD}
SLAPD_DOMAIN: ${LDAP_DOMAIN}
SLAPD_ADDITIONAL_SCHEMAS: ppolicy
SLAPD_ADDITIONAL_MODULES: ppolicy
DEBUG_LEVEL: 256
lam:
image: openfrontier/lam:${LAM_VERSION}
restart: unless-stopped
logging:
driver: "journald"
networks:
- ldap-network
ports:
- "80"
volumes:
- lam-config-volume:/var/www/html/lam/config
environment:
constraint:volume.driver: =${VOLUME_DRIVER}
LDAP_URL: ldap://ldap-haproxy
LDAP_PORT: 389
LDAP_ADMIN: ${LDAP_ADMIN}
SLAPD_DN: ${LDAP_BASEDN}
USER_DN: ${LDAP_USER_BASEDN}
GROUP_DN: ${LDAP_GROUP_BASEDN}
ssp:
image: openfrontier/ldap-ssp:${SSP_VERSION}
restart: unless-stopped
logging:
driver: "journald"
networks:
- ldap-network
ports:
- "80"
environment:
LDAP_URL: ldap://ldap-haproxy
LDAP_BASE: ${LDAP_USER_BASEDN}
LDAP_BINDDN: ${LDAP_ADMIN}
LDAP_BINDPW: ${LDAP_PWD}
SMTP_HOST: smtp-relay
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
SMTP_AUTH: ${SMTP_AUTH}
MAIL_FROM: ${SMTP_EMAIL}
NOTIFY_ON_CHANGE: ${NOTIFY_ON_CHANGE}
PWD_MIN_LENGTH: ${PWD_MIN_LENGTH}
PWD_MAX_LENGTH: ${PWD_MAX_LENGTH}
PWD_MIN_LOWER: ${PWD_MIN_LOWER}
PWD_MIN_UPPER: ${PWD_MIN_UPPER}
PWD_MIN_DIGIT: ${PWD_MIN_DIGIT}
PWD_MIN_SPECIAL: ${PWD_MIN_SPECIAL}
PWD_SPECIAL_CHARS: ${PWD_SPECIAL_CHARS}
smtp-relay:
image: turgon37/smtp-relay
restart: unless-stopped
logging:
driver: "journald"
networks:
- ldap-network
ports:
- "25"
volumes:
- smtp-relay-volume:/data
environment:
constraint:volume.driver: =${VOLUME_DRIVER}
RELAY_MYDOMAIN: ${RELAY_MYDOMAIN}
RELAY_HOST: ${RELAY_HOST}
ldap-haproxy:
image: openfrontier/haproxy-etcd:${HAPROXY_VERSION}
restart: unless-stopped
logging:
driver: "journald"
dns:
- ${DNS_SERVER}
networks:
- ldap-network
ports:
- "389:389"
- "25:25"
environment:
constraint:node: =${LDAP_PROXY_NODE}
ETCD_CLIENT_IP: ${ETCD_CLIENT_IP}
PROJECT_NAME: ${COMPOSE_PROJECT_NAME}
ldap-proxy:
image: openfrontier/nginx-etcd:latest
restart: unless-stopped
logging:
driver: "journald"
dns:
- ${DNS_SERVER}
networks:
- ldap-network
- proxy-network
ports:
- "80"
depends_on:
- "lam"
- "ssp"
environment:
#constraint:node: =${LDAP_PROXY_NODE}
PROJECT_NAME: ${COMPOSE_PROJECT_NAME}
ETCD_CLIENT_IP: ${ETCD_CLIENT_IP}