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