-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
125 lines (114 loc) · 3.17 KB
/
docker-compose.yaml
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
version: "3.9"
services:
rabbitmq:
image: rabbitmq:3-management
hostname: rabbitmq
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: root
RABBITMQ_DEFAULT_PASS: SuperSenha123
ports:
- "8080:15672"
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: 5s
timeout: 10s
retries: 5
mongodb:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: Super_Senha321
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: Super#Senha
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis
api:
build:
context: ./Api
dockerfile: dockerfile
container_name: flux-de-caixa-api
ports:
- "8081:80"
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_started
configure-rabbit:
condition: service_completed_successfully
environment:
ConnectionStrings__RabbitMQ: "amqp://root:SuperSenha123@rabbitmq:5672"
ConnectionStrings__Redis: "redis:6379"
ConnectionStrings__Sql: "Host=postgres;Database=fluxo-de-caixa;Username=postgres;Password=Super#Senha"
report-api:
build:
context: ./Api.Report
dockerfile: dockerfile
container_name: fluxo-de-caixa-api-report
ports:
- "8082:80"
depends_on:
rabbitmq:
condition: service_healthy
mongodb:
condition: service_started
redis:
condition: service_started
configure-rabbit:
condition: service_completed_successfully
api:
condition: service_started
azure-storage:
condition: service_started
gotenberg:
condition: service_started
environment:
rabbitMq: "amqp://root:SuperSenha123@rabbitmq:5672"
database: "fluxo-de-caixa"
mongodb: "mongodb://root:Super_Senha321@mongodb:27017"
blobStorage: "azure-storage"
AzureWebJobsStorage: "DefaultEndpointsProtocol=https;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://local.storage.emulator:10000/devstoreaccount1;QueueEndpoint=http://local.storage.emulator:10001/devstoreaccount1;"
gotenberg: http://gotenberg:3000
app:
build:
context: ./App
dockerfile: dockerfile
container_name: fluxo-de-caixa-app
ports:
- "80:80"
depends_on:
api:
condition: service_started
report-api:
condition: service_started
configure-rabbit:
build:
context: ./Configuration
dockerfile: dockerfile
container_name: configure-rabbitmq
depends_on:
rabbitmq:
condition: service_healthy
environment:
user: "root"
password: "SuperSenha123"
host: rabbitmq
port: 5672
gotenberg:
image: gotenberg/gotenberg:7
azure-storage:
image: "mcr.microsoft.com/azure-storage/azurite:latest"
container_name: azure-storage
ports:
- 10000:10000
- 10001:10001