-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (54 loc) · 1.34 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
version: '3'
services:
ldap:
image: osixia/openldap:1.2.4
hostname: ldap
volumes:
- ./data/ldap/data:/var/lib/ldap:Z
- ./data/ldap/config:/etc/ldap/slapd.d:Z
environment:
LDAP_ADMIN_PASSWORD: "Admin123"
LDAP_TLS: "false"
LDAP_ORGANISATION: "Example Inc."
LDAP_DOMAIN: "example.com"
ports:
- 389:389
restart: always
mailhog:
image: mailhog/mailhog
logging:
driver: 'none' # disable saving logs
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
mysql:
image: mysql:5.7
volumes:
- ./data/mysql:/var/lib/mysql
ports:
- 3306:3306
command: mysqld --lower_case_table_names=1
environment:
MYSQL_ROOT_PASSWORD: keycloak
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: keycloak
keycloak:
build: ./docker
environment:
DB_VENDOR: MYSQL
DB_ADDR: mysql
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: keycloak
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
JDBC_PARAMS: "characterEncoding=UTF-8&useSSL=false&requireSSL=false&autoReconnect=true&useLegacyDatetimeCode=false&serverTimezone=UTC&connectTimeout=30000"
DEBUG: "true"
DEBUG_PORT: "*:8787"
depends_on:
- mysql
- ldap
ports:
- 8080:8080
- 8787:8787