mirror of
https://github.com/philipredstone/relnet.git
synced 2025-06-17 05:01:24 +02:00
fix health check
This commit is contained in:
parent
6ca54dfe9d
commit
88d0c58a35
@ -57,7 +57,7 @@ EXPOSE 80
|
|||||||
|
|
||||||
# Health check to verify the application is running
|
# Health check to verify the application is running
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
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
|
# Start the application
|
||||||
CMD ["bun", "run", "start"]
|
CMD ["bun", "run", "start"]
|
@ -52,7 +52,7 @@ app.use('/api/networks', peopleRoutes);
|
|||||||
app.use('/api/networks', relationshipRoutes);
|
app.use('/api/networks', relationshipRoutes);
|
||||||
|
|
||||||
// Health check
|
// Health check
|
||||||
app.get('/health', (req, res) => {
|
app.get('/api/health', (req, res) => {
|
||||||
res.send('OK');
|
res.send('OK');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user