-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
108 lines (99 loc) · 3.2 KB
/
docker-compose.prod.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
#
# 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.
#
# Since the Dockerfiles use BuildKit features, you have to set the
# DOCKER_BUILDKIT environment variable accordingly.
#
# To build the Docker images:
# COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose build
#
# To run the applications:
# COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose up
#
# To shut down the applications, simply terminate the previous command.
#
version: "3"
services:
spring-boot-admin:
build: spring-boot-admin
image: lakesidemutual/spring-boot-admin
ports:
- "9000:9000"
customer-core:
build: customer-core
image: lakesidemutual/customer-core
environment:
- "SPRING_BOOT_ADMIN_CLIENT_URL=http://spring-boot-admin:9000"
ports:
- "8110:8110"
customer-management-backend:
build: customer-management-backend
image: lakesidemutual/customer-management-backend
depends_on:
- customer-core
environment:
- "CUSTOMERCORE_BASEURL=http://customer-core:8110"
- "SPRING_BOOT_ADMIN_CLIENT_URL=http://spring-boot-admin:9000"
ports:
- "8100:8100"
customer-management-frontend:
build: customer-management-frontend
image: lakesidemutual/customer-management-frontend
depends_on:
- customer-management-backend
ports:
- "3020:80"
policy-management-backend:
build: policy-management-backend
image: lakesidemutual/policy-management-backend
depends_on:
- customer-core
environment:
- "CUSTOMERCORE_BASEURL=http://customer-core:8110"
- "SPRING_BOOT_ADMIN_CLIENT_URL=http://spring-boot-admin:9000"
ports:
- "8090:8090"
- "61613:61613"
- "61616:61616"
policy-management-frontend:
build: policy-management-frontend
image: lakesidemutual/policy-management-frontend
depends_on:
- policy-management-backend
ports:
- "3010:80"
customer-self-service-backend:
build: customer-self-service-backend
image: lakesidemutual/customer-self-service-backend
depends_on:
- customer-core
- policy-management-backend
environment:
- "CUSTOMERCORE_BASEURL=http://customer-core:8110"
- "POLICYMANAGEMENT_TCPBROKERBINDADDRESS=tcp://policy-management-backend:61616"
- "SPRING_BOOT_ADMIN_CLIENT_URL=http://spring-boot-admin:9000"
ports:
- "8080:8080"
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
ports:
- "3000:80"
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"