Add a healthcheck for ipld-eth-server

This commit is contained in:
Prathamesh Musale 2022-12-21 17:05:27 +05:30
parent 2c2df6ebbd
commit d74b3f0d2b
2 changed files with 7 additions and 2 deletions

View File

@ -30,4 +30,9 @@ services:
ports: ports:
- "127.0.0.1:8081:8081" - "127.0.0.1:8081:8081"
- "127.0.0.1:8082:8082" - "127.0.0.1:8082:8082"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "8081"]
interval: 20s
timeout: 5s
retries: 15
start_period: 5s