Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ services:
restart: always
network_mode: host
healthcheck:
test: ["CMD-SHELL", "grep -q 'confidence\\|Nighttime detected' engine.log || exit 1"]
# The loop logs every pass and the night sleep is 60 min, so a log untouched for 70 min means a
# stuck process. Docker never restarts an unhealthy container by itself: kill everything but
# PID 1 so the pipeline exits and `restart: always` brings the engine back.
test: ["CMD-SHELL", "find engine.log -mmin -70 | grep -q . || kill -9 -1"]
interval: 30s
retries: 3
start_period: 20s
Expand Down
Loading