Re-enable healthchecks, adjusted intervals & start-time

This commit is contained in:
Sylvain Huguet 2024-04-01 02:07:44 +02:00
parent 483e2835c4
commit cc648be854
2 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@ RUN npm cache clean --force \
EXPOSE 4100
# HEALTHCHECK --interval=5m --timeout=3s \
# CMD wget --no-verbose --tries=1 --spider http://localhost:4100/ || exit 1
HEALTHCHECK --interval=30s --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://puter.localhost:4100/test || exit 1
CMD [ "npm", "start" ]

View File

@ -17,9 +17,9 @@ services:
volumes:
- ./config:/opt/puter/app/volatile/config
- ./data:/opt/puter/app/volatile/runtime
# healthcheck:
# test: wget --no-verbose --tries=1 --spider http://localhost:4100 || exit 1
# interval: 5m
# timeout: 3s
# retries: 3
# start_period: 2m
healthcheck:
test: wget --no-verbose --tries=1 --spider http://puter.localhost:4100/test || exit 1
interval: 30s
timeout: 3s
retries: 3
start_period: 30s