-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (44 loc) · 1.26 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
version: "3.8"
services:
genesysmysql:
container_name: genesysmysql
image: "mysql:8.0.21"
restart: on-failure
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=db_example
- MYSQL_USER=springuser
- MYSQL_PASSWORD=ThePassword
ports:
- 3306:3306
volumes:
- ./setup.sql:/docker-entrypoint-initdb.d/setup.sql:ro
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 20
cap_add:
- SYS_NICE # CAP_SYS_NICE
genesys:
container_name: genesys
image: "genesys:0.0.1"
build: .
ports:
- 8080:8080
depends_on:
- genesysmysql
- genesyszipkin
environment:
- spring.datasource.url=jdbc:mysql://genesysmysql:3306/db_example?useSSL=false&allowPublicKeyRetrieval=true&autoReconnect=true&serverTimezone=UTC
- spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
- spring.zipkin.base-url=http://genesyszipkin:9411/
restart: on-failure
genesyszipkin:
image: "openzipkin/zipkin:2.22.2"
container_name: genesyszipkin
restart: on-failure
environment:
- STORAGE_TYPE=mem
ports:
- 9411:9411