forked from Mottu-ops/Desafio-BackEnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (113 loc) · 3.25 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
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
services:
postgres-rent:
image: postgres:14
container_name: postgres_rent_container
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: MyRentMotorServiceDb
ports:
- "5432:5432"
volumes:
- postgres_rent_data:/var/lib/postgresql/data
postgres-customer:
image: postgres:14
container_name: postgres_customer_container
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: MyCustomerServiceDb
ports:
- "5433:5432"
volumes:
- postgres_customer_data:/var/lib/postgresql/data
postgres-motorcycle:
image: postgres:14
container_name: postgres_motorcycle_container
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: MyCustomerServiceDb
ports:
- "5434:5432"
volumes:
- postgres_motorcycle_data:/var/lib/postgresql/data
myrentmotorservice.api:
image: myrentmotorserviceapi:latest
container_name: my_rental_motorcycle_service
build:
context: .
dockerfile: MyRentMotorService/MyRentMotorService.API/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_HTTP_PORTS: "8080"
ASPNETCORE_HTTPS_PORTS: "8081"
ports:
- "5000:8080"
- "5001:8081"
- "4020:4020"
depends_on:
- postgres-rent
- rabbitmq
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
mymotorcycleservice.api:
image: mymotorcycleserviceapi:latest
container_name: my_motorcycle_service
build:
context: .
dockerfile: MyMotorcycleService/MyMotorcycleService.API/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_HTTP_PORTS: "8080"
ASPNETCORE_HTTPS_PORTS: "8081"
ports:
- "5002:8080"
- "5003:8081"
- "4021:4020"
depends_on:
- postgres-motorcycle
- rabbitmq
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
mycustomerservice.api:
image: mycustomerserviceapi:latest
container_name: my_customer_service
build:
context: .
dockerfile: MyCustomerService.API/MyCustomerService.API/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_HTTP_PORTS: "8080"
ASPNETCORE_HTTPS_PORTS: "8081"
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
ports:
- "5004:8080"
- "5005:8081"
- "4022:4020"
depends_on:
- postgres-customer
- rabbitmq
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
volumes:
- rabbitmq_data:/var/lib/rabbitmq
volumes:
postgres_rent_data:
postgres_customer_data:
postgres_motorcycle_data:
rabbitmq_data: