authelia/docker-compose.yml

37 lines
873 B
YAML
Raw Normal View History

2016-12-10 07:47:58 +07:00
version: '2'
services:
auth:
2016-12-10 07:47:58 +07:00
build: .
environment:
- LDAP_URL=ldap://ldap
- LDAP_USERS_DN=dc=example,dc=com
- TOTP_SECRET=GRWGIJS6IRHVEODVNRCXCOBMJ5AGC6ZE
2017-01-21 23:41:06 +07:00
- SESSION_SECRET=unsecure_secret
- SESSION_EXPIRATION_TIME=3600000
- STORE_DIRECTORY=/var/lib/auth-server
2016-12-10 07:47:58 +07:00
depends_on:
- ldap
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
- LDAP_ADMIN_PASSWORD=password
2016-12-10 07:47:58 +07:00
expose:
- "389"
nginx:
image: nginx:alpine
volumes:
- ./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
2017-01-21 23:41:06 +07:00
- ./nginx_conf/ssl:/etc/ssl
2016-12-10 07:47:58 +07:00
depends_on:
- auth
2016-12-10 07:47:58 +07:00
ports:
2017-01-21 23:41:06 +07:00
- "8080:443"