fix: [nomad-prep] P5 — add healthchecks to agents, edge, staging, woodpecker-agent (#794)
Add Docker healthcheck blocks so Nomad check stanzas map 1:1 at migration: - agents / agents-llama: pgrep -f entrypoint.sh (60s interval) - woodpecker-agent: wget healthz on :3333 (30s interval) - edge: curl Caddy admin API on :2019 (30s interval) - staging: wget Caddy admin API on :2019 (30s interval) - chat: add /health endpoint to server.py (no-auth 200 OK), fix Dockerfile HEALTHCHECK to use it, add compose-level healthcheck Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3b366ad96e
commit
8799a8c676
4 changed files with 63 additions and 1 deletions
|
|
@ -30,6 +30,6 @@ WORKDIR /var/chat
|
|||
|
||||
EXPOSE 8080
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/')" || exit 1
|
||||
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')" || exit 1
|
||||
|
||||
ENTRYPOINT ["/entrypoint-chat.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue