-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.32 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
services:
mysql:
image: 'mysql:9.1.0'
container_name: 'mysql'
ports:
- '3306:3306'
environment:
- 'MYSQL_DATABASE=keycloak'
- 'MYSQL_USER=keycloak'
- 'MYSQL_PASSWORD=password'
- 'MYSQL_ROOT_PASSWORD=root_password'
healthcheck:
test: 'mysqladmin ping -u root -p$${MYSQL_ROOT_PASSWORD}'
keycloak:
image: 'quay.io/keycloak/keycloak:26.0.7'
container_name: 'keycloak'
environment:
- 'KEYCLOAK_ADMIN=admin'
- 'KEYCLOAK_ADMIN_PASSWORD=admin'
- 'KC_DB=mysql'
- 'KC_DB_URL_HOST=mysql'
- 'KC_DB_URL_DATABASE=keycloak'
- 'KC_DB_USERNAME=keycloak'
- 'KC_DB_PASSWORD=password'
- 'KC_HEALTH_ENABLED=true'
ports:
- '8080:8080'
command: 'start-dev'
depends_on:
- 'mysql'
healthcheck:
test: [ "CMD", "sh", "-c", "[ -z \"$(echo \"\" > /dev/tcp/localhost/9081)\" ] || exit 1" ]
openldap:
image: 'osixia/openldap:1.5.0'
container_name: 'openldap'
environment:
- 'LDAP_ORGANISATION="MyCompany Inc."'
- 'LDAP_DOMAIN=mycompany.com'
ports:
- '389:389'
phpldapadmin:
image: 'osixia/phpldapadmin:0.9.0'
container_name: 'phpldapadmin'
environment:
- 'PHPLDAPADMIN_LDAP_HOSTS=openldap'
ports:
- '6443:443'
depends_on:
- 'openldap'