new: add lldap

This commit is contained in:
2024-06-08 22:44:15 +00:00
parent 22f4139a3b
commit b9896fe850
2 changed files with 38 additions and 0 deletions

6
lldap/.env.example Normal file
View File

@@ -0,0 +1,6 @@
UID=####
GID=####
TZ=####/####
LLDAP_JWT_SECRET=REPLACE_WITH_RANDOM
LLDAP_KEY_SEED=REPLACE_WITH_RANDOM
LLDAP_LDAP_BASE_DN=dc=example,dc=com

32
lldap/compose.yml Normal file
View File

@@ -0,0 +1,32 @@
services:
lldap:
container_name: lldap
image: lldap/lldap:stable
ports:
# For LDAP
#- "3890:3890"
# For LDAPS (LDAP Over SSL), enable port if LLDAP_LDAPS_OPTIONS__ENABLED set true, look env below
#- "6360:6360"
# For the web front-end
#- "17170:17170"
volumes:
- ./appdata:/data
env_file: .env
restart: unless-stopped
networks:
- dmz
- ldap
labels:
# Caddy
caddy: "*.{$$INT_DOMAIN}"
caddy.1_@lldap: "host lldap.{$$INT_DOMAIN}"
caddy.1_handle: "@lldap"
caddy.1_handle.reverse_proxy: "{{upstreams 17170}}"
# Diun
diun.enable: true
networks:
dmz:
external: true
ldap:
external: true