-
Notifications
You must be signed in to change notification settings - Fork 108
/
docker-compose-eureka.yml
140 lines (140 loc) · 4.4 KB
/
docker-compose-eureka.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#
# This is a docker-compose file to build and start all Lakeside Mutual
# applications in a single command. Note that the applications will all
# run in production mode, so there won't be any live-reloading of changes
# or other development features. For development, we recommend to start
# the applications invidually or use the run_all_applications scripts.
#
# To build the Docker images:
# docker-compose -f docker-compose-eureka.yml build
#
# To run the applications:
# docker-compose -f docker-compose-eureka.yml up
#
# To shut down the applications, simply terminate the previous command.
#
version: "3"
services:
eureka-server:
build: eureka-server
image: lakesidemutual/eureka-server
ports:
- "8761:8761"
volumes:
- "maven_repo:/root/.m2"
customer-core:
build: customer-core
image: lakesidemutual/customer-core
depends_on:
- eureka-server
environment:
- "EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka"
- "SPRING_PROFILES_ACTIVE=eureka"
ports:
- "8110:8110"
volumes:
- "maven_repo:/root/.m2"
customer-management-backend:
build: customer-management-backend
image: lakesidemutual/customer-management-backend
depends_on:
- customer-core
environment:
- "EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka"
- "SPRING_PROFILES_ACTIVE=eureka"
ports:
- "8100:8100"
volumes:
- "maven_repo:/root/.m2"
customer-management-frontend:
build: customer-management-frontend
image: lakesidemutual/customer-management-frontend
depends_on:
- customer-management-backend
environment:
- "REACT_APP_CUSTOMER_MANAGEMENT_BACKEND=http://customer-management-backend:8100"
ports:
- "3020:80"
volumes:
- "node_modules:/usr/src/app/node_modules"
customer-self-service-backend:
build: customer-self-service-backend
image: lakesidemutual/customer-self-service-backend
depends_on:
- customer-core
- policy-management-backend
environment:
- "EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka"
- "SPRING_PROFILES_ACTIVE=eureka"
- "POLICYMANAGEMENT_TCPBROKERBINDADDRESS=tcp://policy-management-backend:61616"
ports:
- "8080:8080"
volumes:
- "maven_repo:/root/.m2"
customer-self-service-frontend:
build: customer-self-service-frontend
image: lakesidemutual/customer-self-service-frontend
depends_on:
- customer-self-service-backend
- customer-management-backend
- policy-management-backend
environment:
- "REACT_APP_CUSTOMER_SELF_SERVICE_BACKEND=http://customer-self-service-backend:8080"
- "REACT_APP_POLICY_MANAGEMENT_BACKEND=http://policy-management-backend:8090"
- "REACT_APP_CUSTOMER_MANAGEMENT_BACKEND=http://customer-management-backend:8100"
ports:
- "3000:80"
volumes:
- "node_modules:/usr/src/app/node_modules"
policy-management-backend:
build: policy-management-backend
image: lakesidemutual/policy-management-backend
depends_on:
- customer-core
environment:
- "EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka"
- "SPRING_PROFILES_ACTIVE=eureka"
ports:
- "8090:8090"
- "61613:61613"
- "61616:61616"
volumes:
- "maven_repo:/root/.m2"
policy-management-frontend:
build: policy-management-frontend
image: lakesidemutual/policy-management-frontend
depends_on:
- policy-management-backend
environment:
- "VUE_APP_POLICY_MANAGEMENT_BACKEND=http://policy-management-backend:8090"
ports:
- "3010:80"
volumes:
- "node_modules:/usr/src/app/node_modules"
spring-boot-admin:
build: spring-boot-admin
image: lakesidemutual/spring-boot-admin
depends_on:
- eureka-server
environment:
- "EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka"
- "SPRING_PROFILES_ACTIVE=eureka"
ports:
- "9000:9000"
volumes:
- "maven_repo:/root/.m2"
risk-management-server:
build: risk-management-server
image: lakesidemutual/risk-management-server
depends_on:
- policy-management-backend
environment:
- "activeMQ.host=policy-management-backend"
- "activeMQ.port=61613"
ports:
- "50051:50051"
volumes:
- "node_modules:/usr/src/app/node_modules"
volumes:
maven_repo:
node_modules: