From 626ff1381bf421b744a924e386c86b3a10871e3f Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 20 Aug 2021 15:43:33 -0500 Subject: [PATCH] Add postgres healthcheck --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b4d2b07..10642f8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,11 @@ services: - ./data/postgres:/var/lib/postgresql/data/ - ./data/progs:/progs restart: always + healthcheck: + test: pg_isready -U gitea -d giteadb + interval: 10s + timeout: 5s + retries: 5 gitea: image: gitea/gitea:1