mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Added healthcheck for website
This commit is contained in:
@@ -24,4 +24,7 @@ RUN mv ./build/* /var/www/site/
|
|||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
|
||||||
|
CMD curl -f http://localhost:3000/health || exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["bun", "/var/www/site/index.js"]
|
ENTRYPOINT ["bun", "/var/www/site/index.js"]
|
||||||
|
|||||||
3
src/routes/health/+server.js
Normal file
3
src/routes/health/+server.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export function GET() {
|
||||||
|
return new Response('OK', { status: 200 });
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user