From dcaa490e3431b2906173ba95a382fa2ca15a57fe Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Thu, 10 Aug 2023 21:47:54 +0200 Subject: [PATCH] hedgedoc : rename to container-compose.yml + PostgreSQL healthcheck --- .../{docker-compose.yml => container-compose.yml} | 5 +++++ 1 file changed, 5 insertions(+) rename podman-hedgedoc/{docker-compose.yml => container-compose.yml} (97%) diff --git a/podman-hedgedoc/docker-compose.yml b/podman-hedgedoc/container-compose.yml similarity index 97% rename from podman-hedgedoc/docker-compose.yml rename to podman-hedgedoc/container-compose.yml index cc90abd..5e119cf 100644 --- a/podman-hedgedoc/docker-compose.yml +++ b/podman-hedgedoc/container-compose.yml @@ -20,6 +20,11 @@ services: # - POSTGRES_DB=hedgedoc volumes: - database:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 5s + timeout: 5s + retries: 5 networks: backend: #restart: always