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

@ -73,7 +73,7 @@ def command(ctx, include, exclude, cluster, command, services):
docker = DockerClient(compose_files=compose_files, compose_project_name=cluster)
services_list = list(services) or None
if not dry_run:
if command == "up":
if verbose:

View File

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