diff --git a/Dockerfile b/Dockerfile index 26e3717..e6436f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,7 +57,7 @@ EXPOSE 80 # Health check to verify the application is running HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ - CMD curl -f http://localhost:$PORT/health || exit 1 + CMD curl -f http://localhost:$PORT/api/health || exit 1 # Start the application CMD ["bun", "run", "start"] \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index a700ed9..61340dd 100644 --- a/src/app.ts +++ b/src/app.ts @@ -52,7 +52,7 @@ app.use('/api/networks', peopleRoutes); app.use('/api/networks', relationshipRoutes); // Health check -app.get('/health', (req, res) => { +app.get('/api/health', (req, res) => { res.send('OK'); });