From d19e802c8c6a2e58550a3c888d09f37878e5141f Mon Sep 17 00:00:00 2001 From: webfussel Date: Tue, 15 Jul 2025 13:38:50 +0200 Subject: [PATCH] add: health check health check for docker --- docker-compose.yaml | 2 +- server/api/health.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 server/api/health.ts diff --git a/docker-compose.yaml b/docker-compose.yaml index 92f7821..29eff60 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -37,7 +37,7 @@ services: " restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:1338"] + test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] interval: 30s timeout: 10s retries: 3 diff --git a/server/api/health.ts b/server/api/health.ts new file mode 100644 index 0000000..1332bd4 --- /dev/null +++ b/server/api/health.ts @@ -0,0 +1 @@ +export default defineEventHandler((): string => 'ok' ) \ No newline at end of file