-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (44 loc) · 1.13 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
version: "3"
services:
db-server:
image: mysql:5.7
environment:
MYSQL_DATABASE: sample
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: admin
volumes:
- ./docker/mysql/initdb:/docker-entrypoint-initdb.d
- ./docker/mysql/config:/etc/mysql/conf.d
ports:
- "3306:3306"
schemaspy:
image: schemaspy/schemaspy
depends_on:
- db-server
volumes:
- ./docker/schemaspy/output:/output
- ./docker/schemaspy/config:/config
command: [ "-configFile", "/config/schemaspy.properties" ]
schemaspy-server:
image: nginx
depends_on:
- schemaspy
ports:
- "8181:80"
volumes:
- ./docker/schemaspy/output:/usr/share/nginx/html:ro
app-server:
image: sample-thymeleaf-todo:0.0.1-SNAPSHOT
depends_on:
- db-server
ports:
- "8080:8080"
environment:
spring.datasource.driver-class-name: "com.mysql.cj.jdbc.Driver"
spring.datasource.url: "jdbc:mysql://db-server/sample"
spring.datasource.username: "user"
spring.datasource.password: "password"
volumes:
mysql_db:
driver: local