forked from dalibo/ldap2pg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (31 loc) · 961 Bytes
/
docker-compose.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
version: '3'
services:
ldap:
image: bersace/openldap:latest
environment:
# To debug slapd configuration:
# LDAP_LOG_LEVEL: 33768
LDAP_DOMAIN: ldap.ldap2pg.docker
LDAP_ADMIN_PASSWORD: integral
LDAP_ORGANISATION: ldap2pg
volumes:
- ./fixtures/openldap-config.ldif:/docker-entrypoint-init.d/90-config.ldif
- ./fixtures/openldap-data.ldif:/docker-entrypoint-init.d/95-data.ldif
hostname: ldap
domainname: ldap2pg.docker
labels:
com.dnsdock.alias: ldap.ldap2pg.docker
postgres:
image: postgres:${PGVERSION-15}-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- ./fixtures/postgres.sh:/docker-entrypoint-initdb.d/fixture.sh
labels:
com.dnsdock.alias: postgres.ldap2pg.docker
command: [
postgres,
-c, log_statement=all,
-c, "log_line_prefix=%m [%p]: [%l-1] app=%a,db=%d,client=%h,user=%u ",
]