Self-hosted Explorer Setup

This will set up a self-hosted explorer with its own RPC Node leveraging Docker Compose.

Set up Instance

Set up a linux server with any cloud provider, like AWS, GCP, Azure, or Digital Ocean. 4 vCPUs, 8GB RAM, 40GB storage is enough to get you started. Choose more storage if the Explorer is for a long-running testnet or mainnet L1.

Docker & Docker Compose Installation

Make sure you have Docker and Docker Compose installed on your system. You can use the following commands to install both:

# Install Docker using convenience scriptcurl -fsSL https://get.docker.com -o get-docker.shsudo sh get-docker.shsudo usermod -aG docker $USERnewgrp docker# Test installationdocker run -it --rm hello-worlddocker compose version
# Install Dockersudo yum update -ysudo yum install -y dockersudo systemctl start dockersudo systemctl enable dockersudo usermod -aG docker $USER# Install Docker Compose v2 plugin (Amazon Linux specific)sudo mkdir -p /usr/local/lib/docker/cli-pluginssudo curl -SL https://github.com/docker/compose/releases/download/v2.26.1/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-composesudo chmod +x /usr/local/lib/docker/cli-plugins/docker-composenewgrp docker# Test installationdocker run -it --rm hello-worlddocker compose version
# Install Docker using convenience scriptcurl -fsSL https://get.docker.com -o get-docker.shsudo sh get-docker.shsudo usermod -aG docker $USERnewgrp docker# Test installationdocker run -it --rm hello-worlddocker compose version
# Install Docker Desktop for Mac# Download from: https://www.docker.com/products/docker-desktop/echo "Please download and install Docker Desktop for Mac from the official Docker website."echo "Docker Compose is included with Docker Desktop."# After installation, you can test it by running:docker run -it --rm hello-worlddocker compose version

Select L1

Enter the Avalanche Blockchain ID (not EVM chain ID) of the L1 you want to run a node for.