From b5d0ae88004f5b387ced27685a1dd41ee7a81d92 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 28 Dec 2023 21:30:33 +0100 Subject: [PATCH] Changed restart policy of postgres to always --- templates/docker-postgres-service.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/docker-postgres-service.yml.j2 b/templates/docker-postgres-service.yml.j2 index 46ac6dec..6f3eb8f3 100644 --- a/templates/docker-postgres-service.yml.j2 +++ b/templates/docker-postgres-service.yml.j2 @@ -5,7 +5,7 @@ - POSTGRES_PASSWORD={{database_password}} - POSTGRES_USER={{database_username}} - POSTGRES_DB={{database_databasename}} - restart: unless-stopped + restart: always healthcheck: test: ["CMD-SHELL", "pg_isready -U {{database_databasename}}"] interval: 10s