This repository provides a health check service for blockchain nodes, designed to report the status of chain nodes.
- Health check endpoint for node status
- Modular service structure
- Docker support for easy deployment
- Configurable via environment variables
docker-compose.yml
Dockerfile
go.mod
go.sum
app/
app.go
config/
config.go
handlers/
health.go
models/
status.go
response/
response.go
routes/
routes.go
server/
main.go
services/
status.go
- Go 1.20+
- Docker (optional, for containerized deployment)
git clone https://github.com/Qubetics/chain-healthCheck.git
cd chain-healthCheck
go run server/main.goYou can use the provided Makefile for easier commands:
To run the app locally:
make runTo build and run with Docker:
make docker-upTo build the application binary, run:
make buildThis will create a binary named chain-healthcheck in the project root.
docker-compose up --build -d/health: Returns the health status of the node