Skip to content

Deploying ENSNode with Docker

The Docker images are the easiest way to run or deploy the ENSNode suite of services, both locally and in the cloud.

ENSNode provides several Docker Compose files for different use cases:

  • docker/docker-compose.yml — base stack (mainnet by default): ensindexer, ensapi, ensrainbow, ensadmin, postgres
  • docker/docker-compose.devnet.yml — full stack against local devnet (ens-test-env), no .env.local files required

Before running the base stack, configure the required environment files:

Terminal window
cp apps/ensindexer/.env.local.example apps/ensindexer/.env.local
cp apps/ensapi/.env.local.example apps/ensapi/.env.local
cp apps/ensrainbow/.env.local.example apps/ensrainbow/.env.local

Edit each .env.local to set your RPC URLs and any other required values, then run:

Terminal window
docker compose -f docker/docker-compose.yml up -d