From 37dba6ebfd4e4e55e3699277ec7632008c8ac48b Mon Sep 17 00:00:00 2001
From: Dragnucs <Dragnucs@users.noreply.github.com>
Date: Wed, 7 Aug 2019 08:07:36 +0000
Subject: [PATCH] Add Postgres health check

---
 docker-compose.yml | 2 ++
 1 file changed, 2 insertions(+)

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: .