-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 972 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
34
35
36
# for more info: https://github.com/osixia/docker-openldap
version: '3'
services:
db:
image: postgres
ports:
- "5432:5432"
volumes:
- ".data/etc_postgresql:/etc/postgresql"
- ".data/logs:/var/log/postgresql"
- ".data/lib_postgresql:/var/lib/postgresql/data"
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid ; bundle exec rails server -p 3000 -b '0.0.0.0'"
volumes:
- .:/CDSI_example
environment:
LDAP_PASSWORD: "password"
ports:
- "80:3000"
depends_on:
- db
- ldap
ldap:
image: osixia/openldap:1.1.6
container_name: openldap
environment:
LDAP_TLS: 'false'
LDAP_ORGANISATION: "Northwestern"
LDAP_DOMAIN: "northwestern.edu"
LDAP_BASE_DN: "dc=northwestern,dc=edu"
LDAP_ADMIN_PASSWORD: "password"
volumes:
- "./config/ldap/db:/var/lib/ldap"
- "./config/ldap/slapd:/etc/ldap/slapd.d"
- "./add_to_ldap:/data"