Skip to content

Commit

Permalink
ci: health check for sshnpd
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTubongbanua committed Sep 11, 2023
1 parent c44f03f commit 0384c95
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ services:
image: atsigncompany/sshnp-e2e-runtime:local
depends_on:
- image-runtime-local
healthcheck:
test: ["CMD", "grep", "-Eq", "monitor started for @", "/atsign/err.txt"]
start_period: 10s # Wait 10 seconds before checking
interval: 5s # Check every 5 seconds
timeout: 1s # If a check takes longer than a second, consider it a failed check
retries: 180 # Retry the check 180 times (180 * 5s = 15 mins)

0 comments on commit 0384c95

Please sign in to comment.