-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 1.01 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
version: "3"
services:
springdb:
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: mesghal
MYSQL_USER: user
MYSQL_PASSWORD: secretpass
MYSQL_ROOT_PASSWORD: root
volumes:
- db_data:/var/lib/mysql
springapp:
build:
context: .
ports:
- "8000:8000"
depends_on:
- springdb
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://springdb:3306/mesghal?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
keycloak:
image: quay.io/keycloak/keycloak:latest
command: -Dkeycloak.profile.feature.upload_scripts=enabled
environment:
DB_VENDOR: MYSQL
DB_ADDR: springdb
DB_DATABASE: mesghal
DB_USER: user
DB_PASSWORD: secretpass
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
# JDBC_PARAMS: "useSSl=false"
ports:
- 8080:8080
depends_on:
- springdb
volumes:
db_data: