forked from sproutsocial/botanist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 1.09 KB
/
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
37
38
39
40
41
42
43
44
version: '2'
services:
nginx:
build:
context: ./
dockerfile: Dockerfile.nginx
env_file:
- ./env.local
ports:
- 80:80
- 443:443
volumes:
# IMPORTANT: do not use these snake-oil certs in production!
- ./cert:/etc/ssl/nginx
webapp:
build:
context: ./
dockerfile: Dockerfile
ports:
- 9090
env_file:
- ./env.local
volumes:
- $HOME/botanist/repos:/botanist/repos
localldap:
image: osixia/openldap
ports:
- 389:389
environment:
- LDAP_DOMAIN=example.com
- LDAP_ORGANISATION="Example Ltd."
# this runs to add a test user to the ldap docker container and then exits
# you can log in with username: test and password: t3st
ldapinit:
build:
context: ./
dockerfile: Dockerfile.ldapinit
depends_on:
- localldap
command: dockerize -wait tcp://localldap:389 -timeout 600s ldapadd -v -h localldap -c -x -D cn=admin,dc=example,dc=com -w admin -f /tmp/sample.ldif