Currently, there seems to be a problem when the db crashes and the container continues to run. At least Postgres gets into an undefined state and the whole application is stuck without rebooting.
Solution
Add a /health route that is callable and simply makes a small db request with returning 200.
Context
Currently, there seems to be a problem when the db crashes and the container continues to run. At least Postgres gets into an undefined state and the whole application is stuck without rebooting.
Solution
Add a
/health
route that is callable and simply makes a small db request with returning 200.