forked from Microservice-API-Patterns/LakesideMutual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (54 loc) · 1.85 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
#
# 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 build
#
# To run the applications:
# docker-compose up
#
# Note that you might have to adjust the REACT_APP_ and VUE_APP environment
# variables pointing to the backend services, depending on your hosting
# environment. By default, they point to localhost, which is fine when running
# the services locally. In a cloud deployment, these should be changed to the
# public domainname of the respective backend service.
#
# 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
environment:
- "REACT_APP_CUSTOMER_MANAGEMENT_BACKEND=http://localhost:8100"
ports:
- "3020:80"