Skip to content

Commit 27ea965

Browse files
committed
[DOP-22054] Add healthcheck for server container
1 parent 0a15a53 commit 27ea965

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ repos:
88
- id: check-added-large-files
99
- id: check-ast
1010
- id: check-merge-conflict
11-
- id: check-yaml
1211
- id: debug-statements
1312
- id: detect-private-key
1413
- id: end-of-file-fixer

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ services:
5151
condition: service_healthy
5252
rabbitmq:
5353
condition: service_healthy
54+
healthcheck:
55+
test: [CMD-SHELL, curl -f http://localhost:8000/monitoring/ping]
56+
interval: 30s
57+
timeout: 5s
58+
retries: 3
59+
start_period: 5s
5460

5561
worker:
5662
image: mtsrus/syncmaster-worker:${TAG:-develop}

0 commit comments

Comments
 (0)