mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 06:00:21 +08:00
Re-enable healthchecks, adjusted intervals & start-time
This commit is contained in:
parent
483e2835c4
commit
cc648be854
@ -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" ]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user