authelia/docker-compose.yml

38 lines
950 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: .
depends_on:
- ldap
2016-12-18 03:02:26 +07:00
restart: always
volumes:
- ./config.template.yml:/etc/auth-server/config.yml:ro
- ./notifications:/var/lib/auth-server/notifications
2016-12-10 07:47:58 +07:00
ldap:
image: dinkel/openldap
2016-12-10 07:47:58 +07:00
environment:
- SLAPD_ORGANISATION=MyCompany
- SLAPD_DOMAIN=example.com
- SLAPD_PASSWORD=password
- SLAPD_ADDITIONAL_MODULES=memberof
- SLAPD_ADDITIONAL_SCHEMAS=openldap
- SLAPD_FORCE_RECONFIGURE=true
2016-12-10 07:47:58 +07:00
expose:
- "389"
volumes:
- ./example/ldap:/etc/ldap.dist/prepopulate
2016-12-10 07:47:58 +07:00
nginx:
image: nginx:alpine
volumes:
- ./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:
- auth
2016-12-10 07:47:58 +07:00
ports:
2017-01-21 23:41:06 +07:00
- "8080:443"