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