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 for mainnet/sepolia: ensindexer, ensapi, ensrainbow, ensadmin, postgres
  • docker/docker-compose.devnet.yml — full stack against local devnet (ens-test-env), works out of the box with no configuration required

Copy the example env file and configure it:

Terminal window
cp docker/envs/.env.docker.example docker/envs/.env.docker.local

Edit docker/envs/.env.docker.local to set your NAMESPACE, PLUGINS, and RPC endpoints (e.g. ALCHEMY_API_KEY or RPC_URL_1), then run:

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

Configuration is optional. To customize defaults (e.g. change PLUGINS), copy the example as in previous step and edit it.

Otherwise, skip setup and run directly:

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