-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ldap.yml
More file actions
42 lines (39 loc) · 1.45 KB
/
docker-compose.ldap.yml
File metadata and controls
42 lines (39 loc) · 1.45 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
# Docker Compose overlay — LDAP authentication profile.
#
# Start the full stack with LDAP auth:
# docker compose -f docker-compose.yml -f docker-compose.ldap.yml up -d
# bash docker/gitea-setup.sh # (first time only — creates Gitea admin + test repo)
#
# Log in at http://localhost:8080 with:
# username: testuser password: testpass123
# username: admin password: admin
#
# To add more users, edit docker/ldap-bootstrap.ldif and recreate the openldap container.
services:
openldap:
image: docker.io/osixia/openldap:1.5.0
environment:
LDAP_DOMAIN: example.com
LDAP_ADMIN_PASSWORD: adminpassword
LDAP_TLS: "false"
volumes:
- ./docker/ldap-bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/01-users.ldif:ro
# --copy-service is required for osixia/openldap to pick up custom LDIF files.
command: ["--loglevel", "warning", "--copy-service"]
ports:
- "3389:389"
healthcheck:
test: ["CMD", "ldapsearch", "-x", "-H", "ldap://localhost", "-b", "dc=example,dc=com",
"-D", "cn=admin,dc=example,dc=com", "-w", "adminpassword", "-s", "base"]
interval: 5s
timeout: 5s
retries: 12
start_period: 10s
git-proxy-java:
volumes:
- ./docker/git-proxy-ldap.yml:/app/conf/git-proxy-ldap.yml:ro
environment:
GITPROXY_CONFIG_PROFILES: docker-default,ldap
depends_on:
openldap:
condition: service_healthy