add health check endpoint and update webserver routes

This commit is contained in:
Space-Banane
2026-02-22 14:59:19 +01:00
parent 140d660c1d
commit 5457fb5970
3 changed files with 14 additions and 2 deletions

View File

@@ -9,4 +9,9 @@ services:
- .:/app
ports:
- "$PORT:$PORT"
command: sh -c "npm i -g pnpm && pnpm install && pnpm dev"
command: sh -c "npm i -g pnpm && pnpm install && pnpm dev"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:$PORT/health"]
interval: 30s
timeout: 10s
retries: 1