-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
78 lines (73 loc) · 1.62 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
frontend:
build:
context: ./frontend
container_name: frontend
ports:
- "3000:3000"
depends_on:
- backend
profiles:
- prod
backend:
build:
context: ./backend
container_name: backend
ports:
- "8080:8080"
environment:
- DATABASE_URL=postgres://postgres:password@postgres:5432/applica_db
- LDAP_URL=${LDAP_URL}
- LDAP_BASE_DN=${LDAP_BASE_DN}
- LDAP_ADMIN_PASSWORD=${LDAP_ADMIN_PASSWORD}
- LDAP_LEADER_DN=${LDAP_LEADER_DN}
- JWT_SECRET=${JWT_SECRET}
depends_on:
- postgres
profiles:
- prod
postgres:
image: postgres:16.4
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: applica_db
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
profiles:
- dev
- prod
ldap:
image: osixia/openldap:1.5.0
container_name: ldap
environment:
LDAP_ORGANISATION: "Applica"
LDAP_DOMAIN: "applica.com"
ports:
- "389:389"
- "636:636"
volumes:
- ldap_data:/var/lib/ldap
- ldap_config:/etc/ldap/slapd.d
- ./bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/bootstrap.ldif
command: --copy-service
profiles:
- dev
phpldapadmin:
image: osixia/phpldapadmin:0.9.0
container_name: phpldapadmin
environment:
PHPLDAPADMIN_LDAP_HOSTS: ldap
ports:
- "6443:443"
depends_on:
- ldap
profiles:
- dev
volumes:
postgres_data:
ldap_data:
ldap_config: