forked from kamba4/sunders
fix: Send data handler output to container logs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
aa6ef7f362
commit
5ce403cec2
1 changed files with 18 additions and 5 deletions
|
|
@ -58,9 +58,9 @@ services:
|
|||
db:
|
||||
condition: service_healthy
|
||||
restart: true
|
||||
# if the latest `update_camera_*.log` contains "error", fail the healthcheck
|
||||
# if the latest update output contains "error", fail the healthcheck
|
||||
healthcheck:
|
||||
test: ["CMD", "sh", "-c", "ls /var/log | grep '^update_camera_' | xargs -I {} sh -c 'grep -q error /var/log/{} || exit 0; exit 1'"]
|
||||
test: ["CMD", "sh", "-c", "test \"$(cat /run/update_camera.status)\" = ok"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
start_period: 30s
|
||||
|
|
|
|||
Loading…
Reference in a new issue