summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
author황윤성 <87403078+hys0star@users.noreply.github.com>2021-10-26 17:13:39 +0900
committerGitHub <noreply@github.com>2021-10-26 10:13:39 +0200
commit06be0fb351d5c64db00fe05211a7a7b72605ebf7 (patch)
treeb3a539a2c6a7336fa8dfddac269e397b1f8e69d5 /docker-compose.yml
parent5eb83bb39c25d8456561ddd968533e7126d8fb07 (diff)
downloadinvidious-06be0fb351d5c64db00fe05211a7a7b72605ebf7.tar.gz
invidious-06be0fb351d5c64db00fe05211a7a7b72605ebf7.tar.bz2
invidious-06be0fb351d5c64db00fe05211a7a7b72605ebf7.zip
Add healthcheck for docker-compose
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index ea1d2993..cc62d6e5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -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