Docker Health-Check

This commit is contained in:
Alexey
2026-04-17 16:36:15 +03:00
parent 6e3b4a1ce5
commit 3ca3e8ff0e
8 changed files with 347 additions and 2 deletions

View File

@@ -16,6 +16,12 @@ services:
- /etc/telemt:rw,mode=1777,size=4m
environment:
- RUST_LOG=info
healthcheck:
test: [ "CMD", "/app/telemt", "healthcheck", "/etc/telemt/config.toml", "--mode", "liveness" ]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
# Uncomment this line if you want to use host network for IPv6, but bridge is default and usually better
# network_mode: host
cap_drop: