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 script
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
newgrp docker

# Test installation
docker run -it --rm hello-world
docker compose version
# Install Docker
sudo yum update -y
sudo yum install -y docker
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER

# Install Docker Compose v2 plugin (Amazon Linux specific)
sudo mkdir -p /usr/local/lib/docker/cli-plugins
sudo 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-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

newgrp docker

# Test installation
docker run -it --rm hello-world
docker compose version
# Install Docker using convenience script
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
newgrp docker

# Test installation
docker run -it --rm hello-world
docker 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-world
docker compose version

Select L1

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