From 795e6a9a7f4e969e24fcb9ee09d0bcd11a5fc578 Mon Sep 17 00:00:00 2001 From: kjuulh-parts Date: Fri, 7 Apr 2023 11:26:24 +0000 Subject: [PATCH] feat: with health checks and always restart --- docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 352e7651..ea8ae5ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,13 @@ version: '3' services: blog: image: kasperhermansen/kasperhermansen-blog:1680866633 + restart: always ports: - 9080:80 - 9443:443 + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:80"] + interval: 1m30s + timeout: 30s + retries: 3 + start_period: 40s