docker-compose: add healthcheck
This commit is contained in:
parent
0dcd7c978d
commit
0d13e27793
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user