-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
294 lines (276 loc) · 6.58 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
294 lines (276 loc) · 6.58 KB
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
version: '3.9'
services:
authentication:
build:
context: auth-plus-authentication
dockerfile: Dockerfile
target: dependency
ports:
- '5000:5000'
command: tail -f /dev/null
environment:
APP_NAME: auth-plus-authentication
PORT: 5000
NODE_ENV: development
JWT_SECRET: dPBZ_CSWBApK&7EwL?!_%5dLjTK7An
DATABASE_HOST: database
DATABASE_USER: root
DATABASE_PASSWORD: db_password
DATABASE_DATABASE: auth
DATABASE_PORT: 5432
CACHE_URL: redis:6379
KAFKA_URL: kafka:9092
ZIPKIN_URL: http://zipkin:9411/api/v2/spans
volumes:
- ./auth-plus-authentication:/app
restart: always
networks:
- symphony-net
depends_on:
- database
- cache
- kafka
billing:
build:
context: auth-plus-billing
dockerfile: Dockerfile
target: dependency
command: tail -f /dev/null
ports:
- '5002:5002'
environment:
APP_NAME: auth-plus-billling
PORT: 5002
RUST_ENV: development
DATABASE_HOST: postgres://root:db_password@database:5433/billing
KAFKA_HOST: kafka:9092
volumes:
- ./auth-plus-billing:/app
restart: always
networks:
- symphony-net
depends_on:
- database
client:
build:
context: auth-plus-client
dockerfile: Dockerfile
target: dependency
command: tail -f /dev/null
ports:
- '5003:3000'
volumes:
- ./auth-plus-client:/app
restart: always
networks:
- symphony-net
depends_on:
- database
monetization:
build:
context: auth-plus-monetization
dockerfile: Dockerfile
target: dependency
command: tail -f /dev/null
ports:
- '5004:5004'
volumes:
- ./auth-plus-monetization:/app
restart: always
networks:
- symphony-net
notification:
build:
context: auth-plus-notification
dockerfile: Dockerfile
target: builder
command: tail -f /dev/null
ports:
- '5001:5001'
environment:
APP_NAME: auth-plus-notification
APP_PORT: 5001
GO_ENV: development
KAFKA_URL: kafka
KAFKA_PORT: 9092
AWS_ACCESS_KEY_ID: YOUR_AKID
AWS_SECRET_ACCESS_KEY: YOUR_SECRET_KEY
AWS_SESSION_TOKEN: TOKEN
GOOGLE_APPLICATION_CREDENTIALS: /app/service-account-file.json
GOOGLE_APPLICATION_NAME: auth-plus-c2b74
MAILGUN_API_KEY: mailgun-api-key
ONESIGNAL_API_KEY: onesignal-api-key
SENDGRID_API_KEY: sendgrid-api-key
TELEGRAM_API_KEY: 5198414170:AAFPd4v3t0ty5cnSRJFN_Qjxp-e7twVk8aA
TWILIO_ACCOUNT_SID: ACfd0573f9f976b99746c693947axxxxxx
TWILIO_AUTH_TOKEN: fe4fdcdb09e234bfb63a4091f8xxxxxx
volumes:
- ./auth-plus-notification:/app
restart: always
networks:
- symphony-net
database:
image: postgres:15.1
restart: always
environment:
POSTGRES_PASSWORD: db_password
POSTGRES_USER: root
POSTGRES_MULTIPLE_DATABASES: auth,billing,monetization
ports:
- '5432:5432'
volumes:
- v-database:/var/lib/postgresql/data
- ./config/docker-entrypoint.sh:/docker-entrypoint-initdb.d/docker-entrypoint.sh
networks:
- symphony-net
cache:
container_name: redis
image: redis:7.0.5
hostname: redis
restart: always
volumes:
- v-cache:/data
ports:
- '6379:6379'
networks:
- symphony-net
cache-ui:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
ports:
- '8081:8081'
depends_on:
- cache
networks:
- symphony-net
# OBSERVABILITY
prometheus:
container_name: prometheus
image: prom/prometheus:v2.40.5
restart: always
ports:
- '9090:9090'
volumes:
- v-metrics:/prometheus
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- symphony-net
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
container_name: grafana
image: grafana/grafana:9.3.1
restart: always
environment:
GF_AUTH_DISABLE_LOGIN_FORM: 'true'
GF_AUTH_ANONYMOUS_ENABLED: 'true'
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
volumes:
- ./config/grafana.yml:/etc/grafana/provisioning/datasources/datasources.yml
ports:
- 3000:3000
depends_on:
- prometheus
networks:
- symphony-net
elasticsearch:
container_name: elasticsearch
image: elasticsearch:7.17.8
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- v-elastic:/usr/share/elasticsearch/data
environment:
ES_JAVA_OPTS: -Xmx256m -Xms256m
ELASTIC_PASSWORD: elk_password
discovery.type: single-node
ports:
- 9200:9200
- 9300:9300
networks:
- symphony-net
logstash:
container_name: logstash
image: logstash:7.17.8
restart: always
volumes:
- ./config/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./config/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
environment:
LS_JAVA_OPTS: -Xmx256m -Xms256m
ports:
- 5044:5044
depends_on:
- elasticsearch
networks:
- symphony-net
kibana:
container_name: kibana
image: kibana:7.17.8
restart: always
depends_on:
- elasticsearch
volumes:
- ./config/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- 5601:5601
networks:
- symphony-net
zipkin:
container_name: zipkin
image: openzipkin/zipkin
restart: always
environment:
STORAGE_TYPE: mem
ports:
- 9411:9411
networks:
- symphony-net
# KAFKA
zookeeper:
container_name: zookeeper
image: bitnami/zookeeper:3.8.0
networks:
- symphony-net
ports:
- 2181:2181
- 2888:2888
- 3888:3888
environment:
ALLOW_ANONYMOUS_LOGIN: 'yes'
kafka:
container_name: kafka
image: bitnami/kafka:3.3.1
networks:
- symphony-net
depends_on:
- zookeeper
ports:
- 9092:9092
environment:
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
ALLOW_PLAINTEXT_LISTENER: 'yes'
kafdrop:
container_name: kafdrop
restart: always
image: obsidiandynamics/kafdrop:3.30.0
networks:
- symphony-net
depends_on:
- kafka
ports:
- 9000:9000
environment:
KAFKA_BROKERCONNECT: kafka:9092,localhost:9092
networks:
symphony-net:
driver: bridge
volumes:
v-metrics:
v-elastic:
v-database:
v-cache: