summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDragnucs <Dragnucs@users.noreply.github.com>2019-08-07 08:07:36 +0000
committerGitHub <noreply@github.com>2019-08-07 08:07:36 +0000
commit37dba6ebfd4e4e55e3699277ec7632008c8ac48b (patch)
tree48f3e1632a93f85dc23458be28fab634fb7da2cf
parent66b949bed1b2d685ec2f76c99897a13b94a9373b (diff)
downloadinvidious-37dba6ebfd4e4e55e3699277ec7632008c8ac48b.tar.gz
invidious-37dba6ebfd4e4e55e3699277ec7632008c8ac48b.tar.bz2
invidious-37dba6ebfd4e4e55e3699277ec7632008c8ac48b.zip
Add Postgres health check
-rw-r--r--docker-compose.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index be8347fd..1486f013 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -7,6 +7,8 @@ services:
restart: unless-stopped
volumes:
- postgresdata:/var/lib/postgresql/data
+ healthcheck:
+ test: ["CMD", "pg_isready", "-U", "postgres"]
invidious:
build:
context: .