Skip to main content

Clutch Deploy

clutch-deploy provides Docker Compose for the full Clutch stack. Compose files pull pre-built images from GHCR (ghcr.io/clutchprotocol/...:latest).

Quick start

git clone https://github.com/clutchprotocol/clutch-deploy.git
cd clutch-deploy
cp .env.example .env
docker compose up -d

Dev override with local builds:

docker compose -p clutch-dev -f docker-compose.yml -f docker-compose.dev.yml up -d --build

Services

ServicePortsDescription
clutch-hub-api3000GraphQL, /health, /faucet
clutch-hub-demo-app5173Reference React demo
clutch-explorer-backend8088Block explorer REST API
clutch-explorer-frontend5174Block explorer UI
node18081, 4001, 3001Bootstrap validator
node28082, 4002, 3002Validator 2
node38083, 4003, 3003Validator 3
Prometheus9090Metrics collection
Grafana3030Dashboards (admin/admin)
Seq5341Structured logs
nginx80Reverse proxy (optional, --profile proxy)

Verify

Environment variables

Key entries in .env:

JWT_SECRET=change-me
ALLOWED_ORIGINS=http://localhost:5173
EXPLORER_POSTGRES_PASSWORD=...
EXPLORER_ALLOWED_ORIGINS=http://localhost:5174

See .env.example in the repository for the full list.

Reset

docker compose down -v
docker compose up -d