Merge pull request 'SCRUM-97: Healthcheck + restart-on-unhealthy for fulfillr containers' (#7) from scrum-97/fulfillr-healthcheck into master
This commit was merged in pull request #7.
This commit is contained in:
@@ -55,6 +55,17 @@
|
|||||||
image_strict: true
|
image_strict: true
|
||||||
command: --config /config/dev.json
|
command: --config /config/dev.json
|
||||||
restart_policy: on-failure:3
|
restart_policy: on-failure:3
|
||||||
|
# Self-heal the SCRUM-97 boot race: if a transient Secrets-Manager blip left the
|
||||||
|
# gated outreach/newsletter/cases routes unregistered, /health/startup returns 503
|
||||||
|
# and podman restarts the container in place (busybox wget ships in the alpine
|
||||||
|
# image; start_period covers the ~14s HMAC retry backoff so a healthy boot is never
|
||||||
|
# flagged).
|
||||||
|
healthcheck: "wget -q -O /dev/null http://localhost:8080/api/v1/health/startup || exit 1"
|
||||||
|
healthcheck_interval: 30s
|
||||||
|
healthcheck_timeout: 5s
|
||||||
|
healthcheck_retries: 3
|
||||||
|
healthcheck_start_period: 30s
|
||||||
|
healthcheck_failure_action: restart
|
||||||
log_driver: journald
|
log_driver: journald
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ fulfillr_dev_path }}:/config"
|
- "{{ fulfillr_dev_path }}:/config"
|
||||||
|
|||||||
@@ -52,6 +52,17 @@
|
|||||||
image_strict: true
|
image_strict: true
|
||||||
command: --config /config/production.json
|
command: --config /config/production.json
|
||||||
restart_policy: on-failure:3
|
restart_policy: on-failure:3
|
||||||
|
# Self-heal the SCRUM-97 boot race: if a transient Secrets-Manager blip left the
|
||||||
|
# gated outreach/newsletter/cases routes unregistered, /health/startup returns 503
|
||||||
|
# and podman restarts the container in place (busybox wget ships in the alpine
|
||||||
|
# image; start_period covers the ~14s HMAC retry backoff so a healthy boot is never
|
||||||
|
# flagged).
|
||||||
|
healthcheck: "wget -q -O /dev/null http://localhost:8080/api/v1/health/startup || exit 1"
|
||||||
|
healthcheck_interval: 30s
|
||||||
|
healthcheck_timeout: 5s
|
||||||
|
healthcheck_retries: 3
|
||||||
|
healthcheck_start_period: 30s
|
||||||
|
healthcheck_failure_action: restart
|
||||||
log_driver: journald
|
log_driver: journald
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ fulfillr_path }}:/config"
|
- "{{ fulfillr_path }}:/config"
|
||||||
|
|||||||
@@ -78,13 +78,13 @@
|
|||||||
|
|
||||||
- import_tasks: containers/debyltech/fulfillr.yml
|
- import_tasks: containers/debyltech/fulfillr.yml
|
||||||
vars:
|
vars:
|
||||||
image: git.debyl.io/debyltech/fulfillr:20260614.1925
|
image: git.debyl.io/debyltech/fulfillr:20260628.1930
|
||||||
tags: debyltech, fulfillr
|
tags: debyltech, fulfillr
|
||||||
|
|
||||||
# Staging back-office (fulfillr-dev.debyltech.com) — same image, staging Turso config.
|
# Staging back-office (fulfillr-dev.debyltech.com) — same image, staging Turso config.
|
||||||
- import_tasks: containers/debyltech/fulfillr-dev.yml
|
- import_tasks: containers/debyltech/fulfillr-dev.yml
|
||||||
vars:
|
vars:
|
||||||
image: git.debyl.io/debyltech/fulfillr:20260614.1925
|
image: git.debyl.io/debyltech/fulfillr:20260628.1930
|
||||||
tags: debyltech, fulfillr-dev
|
tags: debyltech, fulfillr-dev
|
||||||
|
|
||||||
- import_tasks: containers/debyltech/uptime-kuma.yml
|
- import_tasks: containers/debyltech/uptime-kuma.yml
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
|
|
||||||
- import_tasks: containers/home/gregtime.yml
|
- import_tasks: containers/home/gregtime.yml
|
||||||
vars:
|
vars:
|
||||||
image: localhost/greg-time-bot:3.9.6
|
image: localhost/greg-time-bot:3.9.14
|
||||||
tags: gregtime
|
tags: gregtime
|
||||||
|
|
||||||
- import_tasks: containers/home/zomboid.yml
|
- import_tasks: containers/home/zomboid.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user