Docker healthcheck

Copied from https://scoutapm.com/blog/how-to-use-docker-healthcheck
This commit is contained in:
Niyas 2021-07-17 20:08:01 +05:30 committed by GitHub
parent c203317b3b
commit 7dae5279fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ RUN npm run build
EXPOSE 3001
VOLUME ["/app/data"]
HEALTHCHECK --interval=5s --timeout=3s --start-period=30s CMD node extra/healthcheck.js
CMD ["npm", "run", "start-server"]
FROM release AS nightly