add a status
This commit is contained in:
8
fuse.yml
8
fuse.yml
@@ -6,6 +6,8 @@ version: '3.1'
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
fuse-health-checker:
|
fuse-health-checker:
|
||||||
|
depends_on:
|
||||||
|
- fuse-nethermind
|
||||||
build:
|
build:
|
||||||
context: ./check-health/
|
context: ./check-health/
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@@ -21,6 +23,11 @@ services:
|
|||||||
|
|
||||||
fuse-nethermind:
|
fuse-nethermind:
|
||||||
image: fusenet/node:nethermind-1.25.4-v6.0.2
|
image: fusenet/node:nethermind-1.25.4-v6.0.2
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "cat", "/health/status", "|", "grep", "-q", "online"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 1s
|
||||||
|
retries: 3
|
||||||
expose:
|
expose:
|
||||||
- "35045"
|
- "35045"
|
||||||
- "8545"
|
- "8545"
|
||||||
@@ -32,6 +39,7 @@ services:
|
|||||||
- fuse-nethermind-keystore:/nethermind/keystore
|
- fuse-nethermind-keystore:/nethermind/keystore
|
||||||
- fuse-nethermind-logs:/nethermind/logs
|
- fuse-nethermind-logs:/nethermind/logs
|
||||||
- fuse-nethermind-db:/nethermind/nethermind_db
|
- fuse-nethermind-db:/nethermind/nethermind_db
|
||||||
|
- fuse-nethermind-health:/health:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user