forked from asc-lab/dotnetcore-microservices-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yml
156 lines (138 loc) · 4.88 KB
/
app.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version: '3.4'
networks:
scripts_default:
external: true
services:
dotnet-agent-portal-gateway:
build:
context: ../
dockerfile: AgentPortalApiGateway/Dockerfile
image: dotnet-agent-portal-gateway
container_name: dotnet-agent-portal-gateway
ports:
- "8099:8099"
- "9000:9000"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTPS_PORT: 9000
ASPNETCORE_URLS: ${ASPNETCORE_URLS_API_GATEWAY}
# ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
# ASPNETCORE_Kestrel__Certificates__Default__Path: ${ASPNETCORE_KESTREL_CERTIFICATE_GATEWAY_PATH}
# volumes:
# - ${CERTIFICATE_PATH}:/root/.dotnet/https
dotnet-auth-service:
build:
context: ../
dockerfile: AuthService/Dockerfile
image: dotnet-auth-service
container_name: dotnet-auth-service
ports:
- "6060:6060"
- "6061:6061"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTPS_PORT: 6061
ASPNETCORE_URLS: ${ASPNETCORE_URLS_AUTH_SERVICE}
# ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
# ASPNETCORE_Kestrel__Certificates__Default__Path: ${ASPNETCORE_KESTREL_CERTIFICATE_PATH}
# volumes:
# - ${CERTIFICATE_PATH}:/root/.dotnet/https
#dotnet-chat-service:
# build:
# context: ../
# dockerfile: ChatService/Dockerfile
# image: dotnet-chat-service
# container_name: dotnet-chat-service
#network_mode: host
dotnet-payment-service:
build:
context: ../
dockerfile: PaymentService/Dockerfile
image: dotnet-payment-service
container_name: dotnet-payment-service
ports:
- "5070:5070"
- "5071:5071"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTPS_PORT: 5071
ASPNETCORE_URLS: ${ASPNETCORE_URLS_PAYMENT_SERVICE}
ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
ASPNETCORE_Kestrel__Certificates__Default__Path: ${ASPNETCORE_KESTREL_CERTIFICATE_PATH}
volumes:
- ${CERTIFICATE_PATH}:/root/.dotnet/https
dotnet-policy-search-service:
build:
context: ../
dockerfile: PolicySearchService/Dockerfile
image: dotnet-policy-search-service
container_name: dotnet-policy-search-service
ports:
- "5060:5060"
- "5061:5061"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTPS_PORT: 5061
ASPNETCORE_URLS: ${ASPNETCORE_URLS_POLICYSEARCH_SERVICE}
ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
ASPNETCORE_Kestrel__Certificates__Default__Path: ${ASPNETCORE_KESTREL_CERTIFICATE_PATH}
volumes:
- ${CERTIFICATE_PATH}:/root/.dotnet/https
dotnet-policy-service:
build:
context: ../
dockerfile: PolicyService/Dockerfile
image: dotnet-policy-service
container_name: dotnet-policy-service
ports:
- "5050:5050"
- "5051:5051"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTPS_PORT: 5051
ASPNETCORE_URLS: ${ASPNETCORE_URLS_POLICY_SERVICE}
ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
ASPNETCORE_Kestrel__Certificates__Default__Path: ${ASPNETCORE_KESTREL_CERTIFICATE_PATH}
volumes:
- ${CERTIFICATE_PATH}:/root/.dotnet/https
dotnet-pricing-service:
build:
context: ../
dockerfile: PricingService/Dockerfile
image: dotnet-pricing-service
container_name: dotnet-pricing-service
ports:
- "5040:5040"
- "5041:5041"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTPS_PORT: 5041
ASPNETCORE_URLS: ${ASPNETCORE_URLS_PRICING_SERVICE}
ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
ASPNETCORE_Kestrel__Certificates__Default__Path: ${ASPNETCORE_KESTREL_CERTIFICATE_PATH}
volumes:
- ${CERTIFICATE_PATH}:/root/.dotnet/https
dotnet-product-service:
build:
context: ../
dockerfile: ProductService/Dockerfile
image: dotnet-product-service
container_name: dotnet-product-service
ports:
- "5030:5030"
- "5031:5031"
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTPS_PORT: 5031
ASPNETCORE_URLS: ${ASPNETCORE_URLS_PRODUCT_SERVICE}
#ASPNETCORE_Kestrel__Certificates__Default__Password: ${ASPNETCORE_KESTREL_CERTIFICATE_PASSWORD}
#ASPNETCORE_Kestrel__Certificates__Default__Path: /root/.dotnet/https/myTLS.pfx
#volumes:
# - C:\tmp\certs\:/root/.dotnet/https
# networks:
# - scripts_default
#dotnet-web-vue:
# build: ../Web
# image: dotnet-web-vue
# container_name: dotnet-web-vue
#network_mode: host