-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
compose.healthcheck.yaml
59 lines (52 loc) · 1.23 KB
/
compose.healthcheck.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
services:
app:
healthcheck:
test: "curl --fail 127.0.0.1:8000"
depends_on:
phpfpm:
condition: service_started
phpfpm:
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
opensearch:
condition: service_healthy
rabbitmq:
condition: service_healthy
#elasticsearch:
# condition: service_healthy
db:
healthcheck:
test: "mysqladmin ping -h localhost -u root -pmagento"
interval: 5s
timeout: 5s
retries: 30
redis:
healthcheck:
test: "redis-cli ping || exit 1"
interval: 5s
timeout: 5s
retries: 30
opensearch:
healthcheck:
test: "curl --fail opensearch:9200/_cat/health >/dev/null || exit 1"
interval: 5s
timeout: 5s
retries: 30
#elasticsearch:
# healthcheck:
# test: "curl --fail elasticsearch:9200/_cat/health >/dev/null || exit 1"
# interval: 5s
# timeout: 5s
# retries: 30
rabbitmq:
healthcheck:
test: "rabbitmq-diagnostics -q ping"
interval: 5s
timeout: 5s
retries: 30
mailcatcher:
healthcheck:
test: "wget --no-verbose --tries=1 --spider 127.0.0.1:1080 || exit 1"