mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 00:41:09 +02:00
fix(todo): correct health check endpoints
- Backend: Fix Dockerfile health check path (/api/v1/health -> /health) - Web: Add missing /health endpoint for Docker health checks Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b7d4893ad5
commit
475246a55d
2 changed files with 11 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ EXPOSE 3018
|
|||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:3018/api/v1/health || exit 1
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:3018/health || exit 1
|
||||
|
||||
# Run entrypoint script
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
|
|
|||
10
apps/todo/apps/web/src/routes/health/+server.ts
Normal file
10
apps/todo/apps/web/src/routes/health/+server.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { json } from '@sveltejs/kit';
|
||||
import type { RequestHandler } from './$types';
|
||||
|
||||
export const GET: RequestHandler = async () => {
|
||||
return json({
|
||||
status: 'ok',
|
||||
service: 'todo-web',
|
||||
timestamp: new Date().toISOString(),
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue