-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (84 loc) · 2.16 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.8"
services:
mysqldb:
image: mysql:latest
networks:
- nt2
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3306"]
interval: 3s
timeout: 10s
retries: 30
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
container_name: mysqldb
data-app:
build: ./EnterDataApp
networks:
- nt2
ports:
- "8080:8080"
depends_on:
mysqldb:
condition: service_healthy
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url" : "jdbc:mysql://mysqldb:3306/students",
"spring.datasource.username" : "root",
"spring.datasource.password" : "123456",
"spring.jpa.hibernate.ddl-auto" : "update"
}'
container_name: EnterDataApp
authentication-app:
build: ./authentication
networks:
- nt2
ports:
- "7070:7070"
environment:
SPRING_APPLICATION_JSON: '{
"server.port" : "7070"
}'
container_name: AuthenticationApp
analytics-app:
depends_on:
mysqldb:
condition: service_healthy
build: ./analytics
networks:
- nt2
ports:
- "6060:6060"
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url" : "jdbc:mysql://mysqldb:3306/students",
"spring.datasource.username" : "root",
"spring.datasource.password" : "123456",
"spring.jpa.hibernate.ddl-auto" : "update",
"server.port" : "6060"
}'
container_name: AnalyticsApp
show-app:
depends_on:
analytics-app:
condition: service_started
build: ./showApp
networks:
- nt2
ports:
- "9090:9090"
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url" : "jdbc:mysql://mysqldb:3306/students",
"spring.datasource.username" : "root",
"spring.datasource.password" : "123456",
"spring.jpa.hibernate.ddl-auto" : "update",
"server.port" : "9090"
}'
container_name: ShowApp
networks:
nt2: