-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
255 lines (236 loc) · 7.07 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
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
version: "3.9"
services:
infinity-net-redis-insight:
image: redis/redisinsight:latest
container_name: infinity-net-redis-insight
volumes:
- infinity-net-redis-insight-data:/db
ports:
- "5540:5540"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-redis:
image: redis:latest
container_name: infinity-net-redis
volumes:
- infinity-net-redis-data:/data
ports:
- "6379:6379"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-rabbitmq:
image: rabbitmq:management-alpine
container_name: infinity-net-rabbitmq
command: rabbitmq-server
environment:
RABBITMQ_DEFAULT_USER: infinitynetUser
RABBITMQ_DEFAULT_PASS: Password@123
volumes:
- infinity-net-rabbitmq-data:/var/lib/rabbitmq
ports:
- "5672:5672" # Port for producer & consumer
- "15672:15672" # UI dashboard
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-pgadmin:
image: dpage/pgadmin4:snapshot
container_name: infinity-net-pgadmin
depends_on: [infinity-net-postgres]
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: Password@123
PGADMIN_CONFIG_SERVER_MODE: "False"
volumes:
- infinity-net-pgadmin-data:/var/lib/pgadmin
ports:
- "5050:80"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-postgres:
image: postgres:12.20-bullseye
container_name: infinity-net-postgres
environment:
POSTGRES_USER: infinitynetUser
POSTGRES_PASSWORD: Password@123
PGDATA: /var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
- infinity-net-postgres-data:/var/lib/postgresql/data
- ./Docker/postgres/postgres-init-db:/docker-entrypoint-initdb.d:ro
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-express:
image: mongo-express:1.0.2-20-alpine3.19
container_name: infinity-net-express
depends_on: [infinity-net-mongodb]
environment:
ME_CONFIG_BASICAUTH: false
ME_CONFIG_MONGODB_ADMINUSERNAME: infinitynetUser
ME_CONFIG_MONGODB_ADMINPASSWORD: Password@123
ME_CONFIG_MONGODB_URL: mongodb://infinitynetUser:Password%40123@infinity-net-mongodb:27017/
ports:
- "5051:8081"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-mongodb:
image: mongo:latest
container_name: infinity-net-mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: infinitynetUser
MONGO_INITDB_ROOT_PASSWORD: Password@123
volumes:
- infinity-net-mongodb-data:/data/db
- ./Docker/mongodb/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh
- ./Docker/mongodb/data:/backup
ports:
- "27017:27017"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-minio:
image: minio/minio:RELEASE.2024-08-26T15-33-07Z.fips
container_name: infinity-net-minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- infinity-net-minio-data:/data:r
environment:
MINIO_ROOT_USER: infinitynetUser
MINIO_ROOT_PASSWORD: Password@123
command: server /data --console-address ":9001"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-tempo:
image: grafana/tempo:main-bbe0435
container_name: infinity-net-tempo
command: ["-config.file=/etc/tempo.yaml"]
volumes:
- ./Docker/grafana-stack/tempo/tempo.yml:/etc/tempo.yaml:ro
- ./Docker/grafana-stack/tempo/tempo-data:/tmp/tempo
ports:
- "3110:3100" # Tempo
- "9411:9411" # zipkin
- "4317:4317" # OTel
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-loki:
image: grafana/loki:main
container_name: infinity-net-loki
command: ["-config.file=/etc/loki/local-config.yaml"]
volumes:
- ./Docker/grafana-stack/loki/loki-config.yaml:/etc/loki/loki-local-config.yaml
ports:
- "3100:3100"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-promtail:
image: grafana/promtail:latest
container_name: infinity-net-promtail
volumes:
- ./Docker/grafana-stack/promtail/var/log:/var/log
- ./Docker/grafana-stack/promtail/promtail-config.yaml:/etc/promtail/config.yaml
command: -config.file=/etc/promtail/config.yaml
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-prometheus:
image: prom/prometheus:main
container_name: infinity-net-prometheus
command:
- --enable-feature=exemplar-storage
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./Docker/grafana-stack/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-grafana:
image: grafana/grafana:10.1.0
container_name: infinity-net-grafana
environment:
GF_SECURITY_ADMIN_USER: infinitynetUser
GF_SECURITY_ADMIN_PASSWORD: Password@123
volumes:
- ./Docker/grafana-stack/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./Docker/grafana-stack/grafana/dashboards:/etc/grafana/provisioning/dashboards
ports:
- "3000:3000"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-elasticsearch:
image: elasticsearch:8.15.0
container_name: infinity-net-elasticsearch
environment:
xpack.security.enabled: false
discovery.type: single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- infinity-net-elasticsearch-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-kibana:
image: kibana:8.15.0
container_name: infinity-net-kibana
depends_on: [infinity-net-elasticsearch]
environment:
ELASTICSEARCH_HOSTS: http://infinity-net-elasticsearch:9200
ports:
- "5601:5601"
networks:
- infinity-net-network
restart: unless-stopped
infinity-net-logstash:
image: logstash:8.15.0
container_name: infinity-net-logstash
depends_on: [infinity-net-elasticsearch]
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
volumes:
- ./Docker/elk-stack/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./Docker/elk-stack/logstash/pipeline:/usr/share/logstash/pipeline:ro
ports:
- "5044:5044"
- "5000:5000/tcp"
- "5000:5000/udp"
- "9600:9600"
networks:
- infinity-net-network
restart: unless-stopped
networks:
infinity-net-network:
driver: bridge
volumes:
infinity-net-redis-insight-data:
infinity-net-redis-data:
infinity-net-rabbitmq-data:
infinity-net-pgadmin-data:
infinity-net-postgres-data:
infinity-net-mongodb-data:
infinity-net-minio-data:
infinity-net-elasticsearch-data: