-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
36 lines (34 loc) · 907 Bytes
/
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
version: '3'
services:
ldap_auth:
build: ../..
ports:
- "8888:8888"
networks:
- frontend
volumes:
- .:/etc/nginx/conf.d
links:
- nginx
environment:
LOG_LEVEL: "debug"
LISTEN: ":8888"
LDAP_SERVER: "ldaps://ldap.jumpcloud.com"
LDAP_BASE: "o=${OID},dc=jumpcloud,dc=com"
LDAP_BIND_DN: "uid=${LDAP_BIND_USER},ou=Users,o=${OID},dc=jumpcloud,dc=com"
LDAP_BIND_PASSWORD: "${LDAP_BIND_PASSWORD}"
LDAP_USER_FILTER: "(uid=%s)"
LDAP_GROUP_FILTER: "(&(objectClass=groupOfNames)(member=uid=%s,ou=Users,o=${OID},dc=jumpcloud,dc=com))"
HEADERS_MAP: "X-LDAP-Mail:mail,X-LDAP-UID:uid,X-LDAP-CN:cn"
UPSTREAM: "http://nginx:8080"
nginx:
image: nginx:1.13
ports:
- "8080:8080"
volumes:
- ./nginx:/etc/nginx/conf.d
networks:
- frontend
networks:
frontend:
driver: "bridge"