-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (81 loc) · 2.2 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
79
80
81
82
83
84
85
services:
postgres:
image: postgres:15
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres:/var/lib/postgresql/data
- ./postgres/:/docker-entrypoint-initdb.d/
ports:
- "5432:5432"
openldap:
image: "bitnami/openldap:2.6"
container_name: openldap
environment:
LDAP_ADMIN_USERNAME: admin
LDAP_ADMIN_PASSWORD: admin
LDAP_ADMIN_DN: cn=admin,dc=example,dc=org
LDAP_ROOT: dc=example,dc=org
healthcheck:
test: [ "CMD-SHELL", "ldapsearch -H ldapi:/// -b dc=example,dc=org cn > /dev/null" ]
interval: 15s
retries: 5
timeout: 5s
ports:
- "1389:1389"
- "1636:1636"
volumes:
- openldap:/bitnami/openldap
- ./openldap:/ldifs
openldap-admin:
image: "osixia/phpldapadmin:0.9.0"
container_name: openldap-admin
ports:
- "8000:80"
volumes:
- ./openldap-admin/.env.yaml:/container/environment/01-custom/env.yaml
depends_on:
openldap:
condition: service_started
keycloak:
image: "bitnami/keycloak:26"
container_name: keycloak
environment:
KEYCLOAK_HTTP_PORT: 8100
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KEYCLOAK_DATABASE_VENDOR: postgresql
KEYCLOAK_DATABASE_HOST: postgres
KEYCLOAK_DATABASE_PORT: 5432
KEYCLOAK_DATABASE_NAME: keycloak
KEYCLOAK_DATABASE_USER: program
KEYCLOAK_DATABASE_PASSWORD: "test"
KEYCLOAK_ENABLE_HEALTH_ENDPOINTS: true
KEYCLOAK_EXTRA_ARGS: "-Dkeycloak.profile.feature.scripts=enabled"
ports:
- "8100:8100"
healthcheck:
test: [ "CMD", "curl", "--silent", "--fail", "http://localhost:9000/health/ready" ]
interval: 10s
timeout: 5s
retries: 10
volumes:
- keycloak:/bitnami/keycloak
- ./keycloak/:/docker-entrypoint-initdb.d/
depends_on:
postgres:
condition: service_healthy
openldap:
condition: service_healthy
volumes:
keycloak:
openldap:
postgres: