Add healthcheck

Inquire http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw every 30 seconds, mark Unhealthy when an error returns.
https://github.com/iv-org/documentation/pull/155
(I didn't put Autoheal in here.)
This commit is contained in:
황윤성 2021-10-18 23:13:56 +09:00 committed by GitHub
parent 736d63c08f
commit a67f53766d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,11 @@ services:
full_refresh: false
https_only: false
domain:
healthcheck:
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
interval: 30s
timeout: 5s
retries: 2
depends_on:
- postgres