mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-10 06:37:17 +00:00
* Add Docker container health checks
* Use invoke tasks for Docker container health checks
Updates server and worker healthchecks to use invoke server-health
and invoke worker-health as requested in #12124 review.
Refs #12124
* Added HTTP host check to server health check
* Add health-check endpoint for Caddyfile
* Simplify health check for Caddy
* Remove test file
---------
(cherry picked from commit 773ed4eb3a)
Co-authored-by: getpwnam <cp@evilbit.co.uk>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: DESKTOP-691E36A\Administrator <br198064@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
co-authored by
getpwnam
Oliver
DESKTOP-691E36A\Administrator
Matthias Mair
parent
2fbaa02a07
commit
d68411571f
@@ -30,6 +30,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
# Internal-only health check endpoint, on port 9090
|
||||
# This only serves to check that the Caddy container is running correctly
|
||||
:9090 {
|
||||
handle /api/system/health/* {
|
||||
reverse_proxy {$INVENTREE_SERVER:"http://inventree-server:8000"}
|
||||
}
|
||||
|
||||
handle {
|
||||
respond 404
|
||||
}
|
||||
}
|
||||
|
||||
# The default server address is configured in the .env file
|
||||
# If not specified, the proxy listens for all http/https traffic
|
||||
# If you need to listen on multiple addresses, or use a different port, you can modify this section directly
|
||||
|
||||
Reference in New Issue
Block a user