Prepare a clean, secure Ubuntu 22.04 server before installing the explorer stack.
1. Provision the Server
Start with a server or VM meeting the Hardware Requirements:
- Ubuntu 22.04 LTS
- NVMe SSD storage
- A static public IP if the explorer will be public
2. System Updates and Base Packages
sudo apt update && sudo apt upgrade -ysudo apt install -y curl git ufw jq ca-certificates gnupg3. Create a Deployment User
Avoid running everything as root:
sudo adduser openscansudo usermod -aG sudo openscan4. Install Docker
curl -fsSL https://get.docker.com | sudo shsudo usermod -aG docker openscanLog out and back in, then verify:
docker versiondocker compose version5. Configure the Firewall
sudo ufw allow OpenSSHsudo ufw allow 80/tcp # HTTP (certificate issuance, redirect)sudo ufw allow 443/tcp # HTTPSsudo ufw enableDo not expose the explorer’s internal ports (3000, 4000, 5432) or your chain node’s RPC (8545) publicly — the reverse proxy handles public traffic (see TLS / HTTPS Setup).
6. Storage Layout
Put Docker data and explorer volumes on your fast disk:
sudo mkdir -p /data/openscansudo chown openscan:openscan /data/openscanIf the disk is mounted somewhere other than /, configure Docker’s data root accordingly in /etc/docker/daemon.json:
{ "data-root": "/data/docker"}sudo systemctl restart docker7. Time Synchronization
Explorers are timestamp-sensitive; ensure NTP is active:
timedatectl statusNext Step
Explorer Installation (Preparation) — configuration and secrets.