forked from codingdroplets/DemoMicroserviceSolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (87 loc) · 1.9 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
90
91
92
93
94
95
96
version: '3.4'
networks:
backend:
frontend:
services:
customerdb:
container_name: customer-db
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=password@12345#
networks:
- backend
ports:
- 18001:1433
customerwebapi:
container_name: customer-api
image: ${DOCKER_REGISTRY-}customerwebapi
build:
context: .
dockerfile: CustomerWebApi/Dockerfile
networks:
- backend
environment:
- DB_HOST=customerdb
- DB_NAME=dms_customer
- DB_SA_PASSWORD=password@12345#
productdb:
container_name: product-db
image: mysql:8.0.29-oracle
environment:
- MYSQL_ROOT_PASSWORD=password@12345#
ports:
- 18003:3306
networks:
- backend
productwebapi:
container_name: product-api
image: ${DOCKER_REGISTRY-}productwebapi
build:
context: .
dockerfile: ProductWebApi/Dockerfile
networks:
- backend
environment:
- DB_HOST=productdb
- DB_NAME=dms_product
- DB_ROOT_PASSWORD=password@12345#
orderdb:
container_name: order-db
image: mongo
ports:
- 18005:27017
networks:
- backend
orderwebapi:
container_name: order-api
image: ${DOCKER_REGISTRY-}orderwebapi
build:
context: .
dockerfile: OrderWebApi/Dockerfile
networks:
- backend
environment:
- DB_HOST=orderdb
- DB_NAME=dms_order
apigateway:
container_name: api-gateway
image: ${DOCKER_REGISTRY-}apigateway
build:
context: .
dockerfile: ApiGateway/Dockerfile
ports:
- 8001:80
networks:
- backend
- frontend
blazorserverwebui:
container_name: blazor-web-ui
image: ${DOCKER_REGISTRY-}blazorserverwebui
build:
context: .
dockerfile: BlazorServerWebUI/Dockerfile
ports:
- 8002:80
networks:
- frontend