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: .
|
|
|
|
environment:
|
|
|
|
- LDAP_URL=ldap://ldap
|
2016-12-18 01:36:41 +07:00
|
|
|
- LDAP_USERS_DN=dc=example,dc=com
|
2016-12-18 02:19:10 +07:00
|
|
|
- TOTP_SECRET=GRWGIJS6IRHVEODVNRCXCOBMJ5AGC6ZE
|
2016-12-18 01:36:41 +07:00
|
|
|
- JWT_SECRET=unsecure_secret
|
|
|
|
- JWT_EXPIRATION_TIME=1h
|
2016-12-10 07:47:58 +07:00
|
|
|
- PORT=80
|
|
|
|
depends_on:
|
|
|
|
- ldap
|
|
|
|
expose:
|
|
|
|
- "80"
|
2016-12-18 03:02:26 +07:00
|
|
|
restart: always
|
2016-12-10 07:47:58 +07:00
|
|
|
|
|
|
|
ldap:
|
|
|
|
image: osixia/openldap:1.1.7
|
|
|
|
environment:
|
|
|
|
- LDAP_ORGANISATION=MyCompany
|
|
|
|
- LDAP_DOMAIN=example.com
|
2016-12-18 02:19:10 +07:00
|
|
|
- LDAP_ADMIN_PASSWORD=password
|
2016-12-10 07:47:58 +07:00
|
|
|
expose:
|
|
|
|
- "389"
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:alpine
|
|
|
|
volumes:
|
2016-12-18 01:36:41 +07:00
|
|
|
- ./nginx_conf/nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ./nginx_conf/index.html:/usr/share/nginx/html/index.html
|
|
|
|
- ./nginx_conf/secret.html:/usr/share/nginx/html/secret.html
|
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:
|
2016-12-18 02:19:10 +07:00
|
|
|
- "8080:80"
|