-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.ldap.yml
More file actions
42 lines (40 loc) · 1.24 KB
/
Copy pathdocker-compose.ldap.yml
File metadata and controls
42 lines (40 loc) · 1.24 KB
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
# LDAP / Active Directory overlay. Fill every empty value first, then follow
# the secret-helper and startup steps in docs/ldap-authentication.md.
services:
webssh:
environment:
LDAP_ENABLED: "true"
LDAP_AUTO_PROVISION: "false"
LDAP_PROVIDER_ID: default
LDAP_URL: ""
# Optional failover endpoint for the same directory and CA trust.
LDAP_BACKUP_URL: ""
LDAP_BASE_DN: ""
LDAP_BIND_DN: ""
LDAP_USER_FILTER: ""
LDAP_UNIQUE_ID_ATTRIBUTE: ""
# Optional overrides; bounded defaults are built in.
# LDAP_CONNECT_TIMEOUT: "5"
# LDAP_OPERATION_TIMEOUT: "5"
# LDAP_SESSION_REVALIDATION_SECONDS: "300"
# LDAP_LOGIN_RATE_LIMIT: 5 per minute
volumes:
- webssh_auth_secrets:/run/webssh-auth:ro
# Isolated helper with exclusive write access to LDAP secrets.
ldap-tools:
image: ghcr.io/bifrost0x/webssh:latest
profiles: ["ldap-tools"]
restart: "no"
network_mode: none
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
entrypoint: ["python", "/app/deployment/ldap_secret_cli.py"]
command: ["status"]
volumes:
- webssh_auth_secrets:/run/webssh-auth
volumes:
webssh_auth_secrets:
driver: local