-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.template
64 lines (59 loc) · 1.94 KB
/
docker-compose.yml.template
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
version: "3"
services:
openldap:
image: osixia/openldap:1.3.0
container_name: openldap
restart: unless-stopped
environment:
LDAP_LOG_LEVEL: "256"
LDAP_ORGANISATION: "Samuel Alev Inc"
LDAP_DOMAIN: "sql-to-starface.local"
LDAP_BASE_DN: "sql-to-starface.local"
LDAP_ADMIN_PASSWORD: "admin"
LDAP_CONFIG_PASSWORD: "config"
LDAP_READONLY_USER: "true"
LDAP_READONLY_USER_USERNAME: "READ ONLY USER"
LDAP_READONLY_USER_PASSWORD: "READ ONLY PASS"
LDAP_RFC2307BIS_SCHEMA: "false"
LDAP_BACKEND: "mdb"
KEEP_EXISTING_CONFIG: "true"
LDAP_REMOVE_CONFIG_AFTER_SETUP: "true"
LDAP_SSL_HELPER_PREFIX: "ldap"
tty: true
stdin_open: true
volumes:
- ./LDAP/lib:/var/lib/ldap
- ./LDAP/etc:/etc/ldap/slapd.d
ports:
- "389:389"
- "636:636"
domainname: "sql-to-starface.local" # important: same as hostname
hostname: "sql-to-starface.local"
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin
hostname: "phpldapadmin.sql-to-starface.local"
environment:
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
PHPLDAPADMIN_HTTPS: "true"
ports:
- "443:443"
volumes:
- ./LDAP/phpldapadmin:/container/environment/01-custom
depends_on:
- openldap
sync_job:
image: sql-to-starface
container_name: sync_job
environment:
test: test
LDAP_HOST: 'ldap://openldap'
LDAP_ADMIN_USER: 'USER'
LDAP_ADMIN_PASS: 'PASS'
LDAP_BASE_DN: 'BASE SEARCH'
DB_HOST: 'DB HOST'
DB_NAME: 'DB NAME'
DB_USER: 'DB USER'
DB_PASS: 'DB PASS'
depends_on:
- openldap