Implements docker container healthchecks

This commit is contained in:
Alicia Sykes
2021-06-10 19:46:46 +01:00
parent c08d0c6ff6
commit dbfbcf3284
9 changed files with 739 additions and 677 deletions

View File

@@ -24,4 +24,7 @@ RUN yarn build
EXPOSE ${PORT}
# Finally, run start command to serve up the built application
CMD [ "yarn", "build-and-start"]
CMD [ "yarn", "build-and-start"]
# Run simple healthchecks every 5 mins, to check the Dashy's everythings great
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check