Skip to content

Commit

Permalink
add health check to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 18, 2024
1 parent 646dfeb commit d16fe63
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ services:
--port 0
networks:
- devnet
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8551/"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s

lighthouse:
build:
Expand Down Expand Up @@ -45,6 +51,12 @@ services:
- reth
networks:
- devnet
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5052/"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s

validator:
build:
Expand All @@ -62,6 +74,12 @@ services:
- lighthouse
networks:
- devnet
healthcheck:
test: ["CMD", "pgrep", "lighthouse"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s

networks:
devnet:
Expand Down

0 comments on commit d16fe63

Please sign in to comment.