From e98edaf675fe6f39ff7dcbaa94d9ebb067c237b9 Mon Sep 17 00:00:00 2001 From: orfelorfel23 Date: Sun, 15 Nov 2026 21:42:12 +0100 Subject: [PATCH] chore: add docker healthcheck to deployment template --- deployment-template/docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deployment-template/docker-compose.yml b/deployment-template/docker-compose.yml index 282c56a..f514b33 100644 --- a/deployment-template/docker-compose.yml +++ b/deployment-template/docker-compose.yml @@ -10,6 +10,11 @@ services: environment: # TokenWatch liest DB_USER, DB_PASSWORD, etc. und NTFY_URL aus der .env NODE_ENV: production + healthcheck: + test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:3000/', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))"] + interval: 30s + timeout: 10s + retries: 3 networks: - jannik-cloud-net