-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
275 lines (261 loc) · 6.38 KB
/
docker-compose.yml
File metadata and controls
275 lines (261 loc) · 6.38 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
version: "3.9"
volumes:
mysql_dev_volume:
redis_dev_volume:
postgres_dev_volume:
pgadmin_dev_volume:
elasticsearch_dev_volume:
mongo_dev_volume:
networks:
nginx_dev_network:
driver: bridge
services:
nginx_dev:
image: nginx:1.28.1-alpine3.23
container_name: nginx_dev
networks:
- nginx_dev_network
volumes:
- ./dockerData/nginx/www:/var/www
- ./dockerData/nginx/hosts:/etc/hosts
- ./dockerData/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8000:80
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
interval: 30s
timeout: 10s
retries: 3
mysql_dev:
image: mysql:8.0.41
container_name: mysql_dev
command: --log_bin_trust_function_creators=1 --default-authentication-plugin=mysql_native_password --secure-file-priv=''
networks:
- nginx_dev_network
volumes:
- mysql_dev_volume:/var/lib/mysql
- ./dockerData/mysql/my.cnf:/etc/mysql/my.cnf
environment:
- MYSQL_ROOT_PASSWORD=root
ports:
- 3306:3306
deploy:
resources:
limits:
cpus: "1.00"
memory: "1G"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 30s
timeout: 10s
retries: 3
phpmyadmin_dev:
image: phpmyadmin:5.2.3
container_name: phpmyadmin_dev
networks:
- nginx_dev_network
depends_on:
- mysql_dev
environment:
PMA_DB_ENGINE: mysql
PMA_ABSOLUTE_URI: http://localhost:8000/phpmyadmin/
PMA_HOST: mysql_dev
PMA_USER: root
PMA_PASSWORD: root
UPLOAD_LIMIT: 6G
volumes:
- ./dockerData/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
- ./dockerData/phpmyadmin/php.ini:/usr/local/etc/php/php.ini
deploy:
resources:
limits:
cpus: "0.25"
memory: "256M"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/phpmyadmin" ]
interval: 30s
timeout: 10s
retries: 3
adminer_dev:
image: adminer:5.4.1
container_name: adminer_dev
networks:
- nginx_dev_network
depends_on:
- mysql_dev
- nginx_dev
environment:
ADMINER_DEFAULT_SERVER: mysql_dev
deploy:
resources:
limits:
cpus: "0.25"
memory: "256M"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080" ]
interval: 30s
timeout: 10s
retries: 3
redis_dev:
image: redis:8.4.0-alpine
container_name: redis_dev
networks:
- nginx_dev_network
volumes:
- redis_dev_volume:/data
ports:
- 6379:6379
deploy:
resources:
limits:
cpus: "0.50"
memory: "512M"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 30s
timeout: 10s
retries: 3
postgres_dev:
image: postgres:17.2-alpine
container_name: postgres_dev
networks:
- nginx_dev_network
volumes:
- postgres_dev_volume:/var/lib/postgresql/data
- ./dockerData/postgres/backups:/backups
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
deploy:
resources:
limits:
cpus: "1.00"
memory: "1G"
healthcheck:
test: [ "CMD", "pg_isready", "-U", "root" ]
interval: 30s
timeout: 10s
retries: 3
pgadmin_dev:
image: dpage/pgadmin4:9.11
container_name: pgadmin_dev
networks:
- nginx_dev_network
depends_on:
- postgres_dev
- nginx_dev
volumes:
- pgadmin_dev_volume:/root/.pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: root@root.com
PGADMIN_DEFAULT_PASSWORD: root
SCRIPT_NAME: /pgadmin
deploy:
resources:
limits:
cpus: "0.25"
memory: "256M"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:80/pgadmin" ]
interval: 30s
timeout: 10s
retries: 3
mongo_dev:
image: mongo:8.0
container_name: mongo_dev
networks:
- nginx_dev_network
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_INITDB_DATABASE=admin
volumes:
- ./dockerData/mongodb/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- mongo_dev_volume:/data/db
ports:
- 27017:27017
deploy:
resources:
limits:
cpus: "1.00"
memory: "1G"
healthcheck:
test: [ "CMD", "mongosh", "--eval", "db.adminCommand('ping')" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
mongoexpress_dev:
image: mongo-express:1.0.2-20-alpine3.19
container_name: mongoexpress_dev
networks:
- nginx_dev_network
depends_on:
- mongo_dev
- nginx_dev
environment:
ME_CONFIG_MONGODB_SERVER: mongo_dev
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
ME_CONFIG_SITE_BASEURL: /mongoexpress
deploy:
resources:
limits:
cpus: "0.25"
memory: "256M"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8081/mongoexpress" ]
interval: 30s
timeout: 10s
retries: 3
elasticsearch_dev:
image: elasticsearch:9.2.4
container_name: elasticsearch_dev
networks:
- nginx_dev_network
environment:
ES_JAVA_OPTS: '-Xms256m -Xmx256m'
xpack.security.enabled: "false"
discovery.type: single-node
volumes:
- elasticsearch_dev_volume:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
deploy:
resources:
limits:
cpus: "1.00"
memory: "1G"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9200/_cluster/health" ]
interval: 30s
timeout: 10s
retries: 3
kibana_dev:
image: kibana:9.2.4
container_name: kibana_dev
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch_dev:9200
SERVER_BASEPATH: /kibana
networks:
- nginx_dev_network
depends_on:
- elasticsearch_dev
deploy:
resources:
limits:
cpus: "1.00"
memory: "2G"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5601" ]
interval: 30s
timeout: 10s
retries: 3