Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ services:
context: .
dockerfile: Dockerfile
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-s", "-o", "/dev/null", "-w", "%{http_code}", "http://localhost:8545/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
ports:
- "8545:8545" # RPC
- "8546:8546" # websocket
Expand All @@ -22,6 +28,12 @@ services:
restart: unless-stopped
depends_on:
- execution
healthcheck:
test: ["CMD", "curl", "-s", "-o", "/dev/null", "-w", "%{http_code}", "http://localhost:8545/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
ports:
- "7545:8545" # RPC
- "9222:9222" # P2P TCP
Expand Down
2 changes: 2 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
stopwaitsecs=300
autorestart=true

[program:execution]
command=/app/execution-entrypoint
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
stopwaitsecs=300
autorestart=true