From 3083b26a13152536b94c8dfa28b7df7b465abf86 Mon Sep 17 00:00:00 2001 From: kjuulh-parts Date: Fri, 7 Apr 2023 01:03:18 +0000 Subject: [PATCH] feat: added health checks and restart always --- docker-compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b991972..c4734e7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,9 +2,17 @@ version: '3' services: bitebuds: image: docker.io/kasperhermansen/bitebuds:1680553012 + restart: always environment: - RUST_LOG=debug ports: - 10080:3000 volumes: - ./.ssh:/root/.ssh + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000"] + interval: 1m30s + timeout: 30s + retries: 3 + start_period: 40s +