-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.debug.yml
187 lines (174 loc) · 4.21 KB
/
docker-compose.debug.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
version: '3.4'
services:
mysql:
container_name: mysql
image: mysql:latest
environment:
MYSQL_DATABASE: 'tasks-identity'
MYSQL_ROOT_PASSWORD: 'root'
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 20s
retries: 10
postgres:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_DB: "tasks"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
timeout: 20s
retries: 10
mongodb:
container_name: mongodb
image: mongo:latest
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
minio:
container_name: minio
image: quay.io/minio/minio:latest
command: [ "server", "/data", "--console-address", ":9090" ]
environment:
MINIO_ACCESS_KEY: miniouser
MINIO_SECRET_KEY: miniopass
ports:
- "9000:9000"
- "9090:9090"
rabbitmq:
container_name: "rabbitmq"
image: "rabbitmq:3-management"
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: "guest"
RABBITMQ_DEFAULT_PASS: "guest"
redis:
container_name: "redis"
image: "redis:latest"
ports:
- "6379:6379"
elasticsearch:
container_name: elasticsearch
image: elasticsearch:8.11.1
ports:
- 9200:9200
environment:
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
kibana:
container_name: kibana
image: kibana:8.11.1
ports:
- 5601:5601
environment:
- ELASTICSEARCH_URL=http://localhost:9200
depends_on:
- elasticsearch
identitywebapi:
container_name: identitywebapi
depends_on:
- mysql
- rabbitmq
- redis
image: identitywebapi
build:
context: .
dockerfile: src/services/Identity/Identity.WebAPI/Dockerfile
args:
- configuration=Debug
ports:
- 5000:5000
environment:
- ASPNETCORE_ENVIRONMENT=Docker
volumes:
- ~/.vsdbg:/remote_debugger:rw
- ./keys/signing_key.pfx:/app/signing_key.pfx
restart: always
teamhubwebapi:
container_name: teamhubwebapi
depends_on:
- postgres
- rabbitmq
- redis
image: teamhubwebapi
build:
context: .
dockerfile: src/services/TeamHub/TeamHub.WebApi/Dockerfile
args:
- configuration=Debug
ports:
- 5052:5052
- 5053:5053
environment:
- ASPNETCORE_ENVIRONMENT=Docker
volumes:
- ~/.vsdbg:/remote_debugger:rw
- ./keys/signing_key.pfx:/app/signing_key.pfx
restart: always
reporthubwebapi:
container_name: reporthubwebapi
depends_on:
- minio
- mongodb
- rabbitmq
image: reporthubwebapi
build:
context: .
dockerfile: src/services/ReportHub/ReportHub.WebApi/Dockerfile
args:
- configuration=Debug
ports:
- 5007:5007
environment:
- ASPNETCORE_ENVIRONMENT=Docker
volumes:
- ~/.vsdbg:/remote_debugger:rw
- ./keys/signing_key.pfx:/app/signing_key.pfx
restart: always
apigateway:
container_name: apigateway
depends_on:
- minio
- mongodb
- postgres
- mysql
- identitywebapi
- teamhubwebapi
- reporthubwebapi
- rabbitmq
- redis
image: apigateway
build:
context: .
dockerfile: src/ApiGateway/Dockerfile
args:
- configuration=Debug
ports:
- 5283:5283
environment:
- ASPNETCORE_ENVIRONMENT=Docker
volumes:
- ~/.vsdbg:/remote_debugger:rw
- ./keys/signing_key.pfx:/app/signing_key.pfx
restart: always
angular-client:
container_name: angular-client
image: angular-client
build:
context: .
dockerfile: client/Dockerfile
ports:
- "4200:4200"
depends_on:
- apigateway