docker-compose: add healthcheck

This commit is contained in:
vchikalkin 2025-09-04 13:40:42 +03:00
parent 0dcd7c978d
commit 0d13e27793

View File

@ -1,6 +1,11 @@
services:
portfolio:
image: ${DOCKERHUB_USERNAME}/portfolio:${PORTFOLIO_IMAGE_TAG}
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/']
interval: 10s
timeout: 3s
retries: 5
networks:
- web