2016-12-10 00:47:58 +00:00
|
|
|
|
|
|
|
version: '2'
|
|
|
|
services:
|
2016-12-17 19:19:10 +00:00
|
|
|
auth:
|
2016-12-10 00:47:58 +00:00
|
|
|
build: .
|
|
|
|
depends_on:
|
|
|
|
- ldap
|
2016-12-17 20:02:26 +00:00
|
|
|
restart: always
|
2017-01-22 16:54:45 +00:00
|
|
|
volumes:
|
2017-01-28 19:21:30 +00:00
|
|
|
- ./config.template.yml:/etc/auth-server/config.yml:ro
|
|
|
|
- ./notifications:/var/lib/auth-server/notifications
|
2016-12-10 00:47:58 +00:00
|
|
|
|
|
|
|
ldap:
|
2017-01-22 16:54:45 +00:00
|
|
|
image: dinkel/openldap
|
2016-12-10 00:47:58 +00:00
|
|
|
environment:
|
2017-01-22 16:54:45 +00:00
|
|
|
- SLAPD_ORGANISATION=MyCompany
|
|
|
|
- SLAPD_DOMAIN=example.com
|
|
|
|
- SLAPD_PASSWORD=password
|
2017-03-25 14:17:21 +00:00
|
|
|
- SLAPD_ADDITIONAL_MODULES=memberof
|
|
|
|
- SLAPD_ADDITIONAL_SCHEMAS=openldap
|
|
|
|
- SLAPD_FORCE_RECONFIGURE=true
|
2016-12-10 00:47:58 +00:00
|
|
|
expose:
|
|
|
|
- "389"
|
2017-01-22 16:54:45 +00:00
|
|
|
volumes:
|
|
|
|
- ./example/ldap:/etc/ldap.dist/prepopulate
|
2016-12-10 00:47:58 +00:00
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:alpine
|
|
|
|
volumes:
|
2017-01-22 16:54:45 +00: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 00:47:58 +00:00
|
|
|
depends_on:
|
2016-12-17 19:19:10 +00:00
|
|
|
- auth
|
2016-12-10 00:47:58 +00:00
|
|
|
ports:
|
2017-01-21 16:41:06 +00:00
|
|
|
- "8080:443"
|