mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
feat: add backend healthcheck
This commit is contained in:
parent
072edfc6bc
commit
1d65e7dfbd
1 changed files with 5 additions and 0 deletions
|
|
@ -8,9 +8,14 @@
|
|||
services:
|
||||
backend:
|
||||
image: frappe/erpnext:v15.38.1
|
||||
healthcheck:
|
||||
test: |
|
||||
curl --fail -H "Host: $$FRAPPE_SITE_NAME_HEADER" http://localhost:8000/api/method/ping | jq '.message == "pong"' | grep true || exit 1
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
environment:
|
||||
FRAPPE_SITE_NAME_HEADER: my-erpnext
|
||||
volumes:
|
||||
- sites:/home/frappe/frappe-bench/sites
|
||||
- logs:/home/frappe/frappe-bench/logs
|
||||
|
|
|
|||
Loading…
Reference in a new issue