-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose-traefik-v1.yml
49 lines (45 loc) · 1.21 KB
/
docker-compose-traefik-v1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3.6"
services:
identity:
image: hlavki/g-suite-identity-sync:latest
environment:
- SLAPD_BIND_DN=cn=admin,dc=example,dc=org
- SLAPD_BASE_DN=dc=example,dc=org
- SLAPD_PASSWORD=changeme
- GSUITE_DOMAIN=example.org
- GSUITE_CLIENT_ID=*******.apps.googleusercontent.com
- GSUITE_CLIENT_SECRET=******
volumes:
- identity-config:/opt/karaf/etc/identity
depends_on:
- ldap
labels:
- "traefik.port=8181"
- "traefik.enable=true"
- "traefik.backend=identity"
- "traefik.frontend.rule=Host:identity.example.com"
ldap:
image: osixia/openldap:latest
ports:
- "389:389"
environment:
LDAP_LOG_LEVEL: "256"
LDAP_ORGANISATION: "Company ltd."
LDAP_DOMAIN: "example.com"
LDAP_ADMIN_PASSWORD: "changeme"
LDAP_CONFIG_PASSWORD: "changeme"
volumes:
- ldap-data:/var/lib/ldap
- ldap-config:/etc/ldap/slapd.d
traefik:
image: traefik:1.7
command: -c /dev/null --api --docker --docker.domain=example.com --logLevel=DEBUG
restart: always
ports:
- 80:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
identity-config:
ldap-config:
ldap-data: