2016-12-10 07:47:58 +07:00
|
|
|
version: '2'
|
|
|
|
services:
|
2016-12-18 02:19:10 +07:00
|
|
|
auth:
|
2016-12-10 07:47:58 +07:00
|
|
|
build: .
|
2016-12-18 03:02:26 +07:00
|
|
|
restart: always
|
2017-01-22 23:54:45 +07:00
|
|
|
volumes:
|
2017-01-29 02:21:30 +07:00
|
|
|
- ./config.template.yml:/etc/auth-server/config.yml:ro
|
|
|
|
- ./notifications:/var/lib/auth-server/notifications
|
2016-12-10 07:47:58 +07:00
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:alpine
|
|
|
|
volumes:
|
2017-01-22 23:54:45 +07:00
|
|
|
- ./example/nginx_conf/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ./example/nginx_conf/index.html:/usr/share/nginx/html/index.html
|
|
|
|
- ./example/nginx_conf/secret.html:/usr/share/nginx/html/secret.html
|
|
|
|
- ./example/nginx_conf/ssl:/etc/ssl
|
2016-12-10 07:47:58 +07:00
|
|
|
depends_on:
|
2016-12-18 02:19:10 +07:00
|
|
|
- auth
|
2016-12-10 07:47:58 +07:00
|
|
|
ports:
|
2017-01-21 23:41:06 +07:00
|
|
|
- "8080:443"
|
2017-06-15 05:22:16 +07:00
|
|
|
|
|
|
|
openldap:
|
|
|
|
image: clems4ever/openldap
|
|
|
|
ports:
|
|
|
|
- "389:389"
|
|
|
|
environment:
|
|
|
|
- SLAPD_ORGANISATION=MyCompany
|
|
|
|
- SLAPD_DOMAIN=example.com
|
|
|
|
- SLAPD_PASSWORD=password
|
|
|
|
- SLAPD_CONFIG_PASSWORD=password
|
|
|
|
- SLAPD_ADDITIONAL_MODULES=memberof
|
|
|
|
- SLAPD_ADDITIONAL_SCHEMAS=openldap
|
|
|
|
- SLAPD_FORCE_RECONFIGURE=true
|
|
|
|
volumes:
|
|
|
|
- ./example/ldap:/etc/ldap.dist/prepopulate
|
|
|
|
|
|
|
|
openldap-admin:
|
|
|
|
image: osixia/phpldapadmin:0.6.11
|
|
|
|
ports:
|
|
|
|
- 9090:80
|
|
|
|
environment:
|
|
|
|
- PHPLDAPADMIN_LDAP_HOSTS=openldap
|
|
|
|
- PHPLDAPADMIN_HTTPS=false
|