forked from WolfgangOfner/MicroserviceDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.Build.yml
41 lines (39 loc) · 1.28 KB
/
docker-compose.Build.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
version: "3.6"
services:
rabbitmq:
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
image: rabbitmq:3-management
customerapi:
container_name: customerapi
ports:
- 8000:80
- 8001:443
environment:
- "ASPNETCORE_URLS=https://+;http://+"
- Kestrel__Certificates__Default__Path=/app/Infrastructure/Certificate/cert-aspnetcore.pfx
- Kestrel__Certificates__Default__Password=SecretPassword
build:
context: ./CustomerApi
restart: on-failure
depends_on:
- rabbitmq
orderapi:
container_name: order
ports:
- 9000:80
- 9001:443
environment:
- "ASPNETCORE_URLS=https://+;http://+"
- Kestrel__Certificates__Default__Path=/app/Infrastructure/Certificate/cert-aspnetcore.pfx
- Kestrel__Certificates__Default__Password=SecretPassword
build:
context: ./OrderApi
restart: on-failure
depends_on:
- rabbitmq