mirror of
https://github.com/toptal/haste-server.git
synced 2024-11-25 12:25:40 +01:00
add healthcheck, and stopsignal, plus export the correct port
This commit is contained in:
parent
0f145b4444
commit
5a8d52a5e3
@ -52,8 +52,10 @@ ENV RATELIMITS_NORMAL_TOTAL_REQUESTS=500\
|
|||||||
RATELIMITS_BLACKLIST=example1.blacklist,example2.blacklist
|
RATELIMITS_BLACKLIST=example1.blacklist,example2.blacklist
|
||||||
ENV DOCUMENTS=about=./about.md
|
ENV DOCUMENTS=about=./about.md
|
||||||
|
|
||||||
EXPOSE 7777
|
EXPOSE ${PORT}
|
||||||
|
STOPSIGNAL SIGINT
|
||||||
ENTRYPOINT [ "bash", "docker-entrypoint.sh" ]
|
ENTRYPOINT [ "bash", "docker-entrypoint.sh" ]
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s \
|
||||||
|
--retries=3 CMD [ "curl" , "-f" "localhost:${PORT}", "||", "exit", "1"]
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
Loading…
Reference in New Issue
Block a user