forked from TheJavaCookers/CookingWithJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (80 loc) · 2.5 KB
/
docker-compose.yml
File metadata and controls
80 lines (80 loc) · 2.5 KB
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
version: '3.3'
services:
mysqlMaster:
image: mysql/mysql-server:8.0.15
container_name: mysqlMaster
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=rootPass
- MYSQL_DATABASE=db_cooking_with_java
- MYSQL_USER=cookingWithJavaUser
- MYSQL_PASSWORD=cookingWithJavaPass
MainApp1:
build: ./MainApp
image: cookingwithjava-mainapp
container_name: MainApp1
depends_on:
- "mysqlMaster"
- "InternalServiceProxy"
environment:
- SPRING_DATASOURCE_USERNAME=cookingWithJavaUser
- SPRING_DATASOURCE_PASSWORD=cookingWithJavaPass
- WAIT_HOSTS=mysqlMaster:3306
- SPRING_DATASOURCE_URL=jdbc:mysql://mysqlMaster:3306/db_cooking_with_java?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
- SERVER_PORT=9001
- HAZELCAST_URL1=MainApp1
- HAZELCAST_URL2=MainApp2
- URL_APP_PRINCIPAL=https://127.0.0.1:8443
- INTERNAL_SERVICE_URL=http://InternalServiceProxy:7000
MainApp2:
build: ./MainApp
image: cookingwithjava-mainapp
container_name: MainApp2
depends_on:
- "mysqlMaster"
- "InternalServiceProxy"
environment:
- SPRING_DATASOURCE_USERNAME=cookingWithJavaUser
- SPRING_DATASOURCE_PASSWORD=cookingWithJavaPass
- WAIT_HOSTS=mysqlMaster:3306
- SPRING_DATASOURCE_URL=jdbc:mysql://mysqlMaster:3306/db_cooking_with_java?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
- SERVER_PORT=9002
- HAZELCAST_URL1=MainApp1
- HAZELCAST_URL2=MainApp2
- URL_APP_PRINCIPAL=https://127.0.0.1:8443
- INTERNAL_SERVICE_URL=http://InternalServiceProxy:7000
MainProxy:
build: ./MainProxy
image: cookingwithjava-mainproxy
container_name: MainProxy
depends_on:
- "MainApp1"
- "MainApp2"
ports:
- "8443:8443"
- "1936:1936"
- "8080:8080"
InternalService1:
build: ./InternalService
image: cookingwithjava-internalservice
container_name: InternalService1
environment:
- SERVER_PORT=7001
InternalService2:
build: ./InternalService
image: cookingwithjava-internalservice
container_name: InternalService2
environment:
- SERVER_PORT=7002
InternalServiceProxy:
build: ./InternalServiceProxy
image: cookingwithjava-internalproxy
container_name: InternalServiceProxy
depends_on:
- "InternalService1"
- "InternalService2"
expose:
- "7000"
ports:
- "1937:1937"