-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-caddy-lldap.yml
76 lines (72 loc) · 1.66 KB
/
docker-compose-caddy-lldap.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
caddy:
container_name: caddy
image: caddy:2.8.4
restart: unless-stopped
networks:
- caddy
ports:
- 80:80
- 443:443
volumes:
- ./caddy/lldap.Caddyfile:/etc/caddy/Caddyfile
authelia:
container_name: authelia
image: authelia/authelia:4.38.17
restart: unless-stopped
networks:
- caddy
ports:
- 9091
volumes:
- ./authelia-caddy-lldap:/config
depends_on:
- redis
environment:
- AUTHELIA_SESSION_DOMAIN=pygeoapi.local
- AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD=super_strong_ldap_password
- AUTHELIA_AUTHENTICATION_BACKEND_LDAP_BASE_DN=dc=pygeoapi,dc=local
redis:
container_name: redis
image: redis:7.0
restart: unless-stopped
networks:
- caddy
pygeoapi:
container_name: pygeoapi
build:
context: .
dockerfile: Dockerfile.pygeoapi
restart: unless-stopped
volumes:
- ./pygeoapi-config.yml:/pygeoapi/local.config.yml
- ./authelia-caddy-lldap:/pygeoapi/authelia-config
ports:
- 80
environment:
- SCRIPT_NAME=/api
depends_on:
- redis
- caddy
- authelia
networks:
- caddy
lldap:
container_name: lldap
image: lldap/lldap:stable
restart: unless-stopped
networks:
- caddy
expose:
- 3890 # LDAP service
- 17170 # Web service
volumes:
- ./lldap/config:/data:rw
environment:
- LLDAP_JWT_SECRET=REPLACE_WITH_RANDOM
- LLDAP_KEY_SEED=REPLACE_WITH_RANDOM
- LLDAP_LDAP_BASE_DN=dc=pygeoapi,dc=local
- LLDAP_LDAP_USER_PASS="super_strong_ldap_password"
networks:
caddy:
name: caddy