mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-10-03 16:58:44 -04:00
[docker healthcheck] use retries instead, longer start-period causes starting problem in Docker Swarm mode
This commit is contained in:
parent
dd283423ab
commit
1d05df6ec9
3 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ RUN npm install --legacy-peer-deps && npm run build && npm prune
|
|||
|
||||
EXPOSE 3001
|
||||
VOLUME ["/app/data"]
|
||||
HEALTHCHECK --interval=600s --timeout=130s --start-period=300s CMD node extra/healthcheck.js
|
||||
HEALTHCHECK --interval=60s --timeout=30s --start-period=180s --retries=5 CMD node extra/healthcheck.js
|
||||
CMD ["node", "server/server.js"]
|
||||
|
||||
FROM release AS nightly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue