Provision a server and deploy the full OpenScan.AI stack in one automated run — repeatable and scriptable.
Use this method when you want self-hosting without hand-holding each step, or when you deploy explorers for multiple chains and need consistency.
What the Automation Does
- Prepares the server: updates, Docker installation, firewall rules
- Creates deployment directories and renders configuration from your variables
- Pulls container images and initializes the database
- Starts the stack and runs health checks
- Optionally configures a reverse proxy with TLS (see TLS / HTTPS Setup)
Prerequisites
- A fresh Ubuntu 22.04 server meeting the Hardware Requirements
- SSH access with sudo
- Ansible installed on your workstation:
pip install ansible - A synced EVM node endpoint for your chain
Inventory and Variables
Create an inventory file hosts.ini:
[explorer]explorer-1 ansible_host=203.0.113.10 ansible_user=ubuntuAnd group variables in group_vars/explorer.yml:
chain_id: 50network_name: "Your Chain"coin_symbol: XYZjsonrpc_http_url: "http://your-chain-node:8545"jsonrpc_trace_url: "http://your-chain-node:8545"explorer_domain: "explorer.yourchain.example"db_password: "{{ vault_db_password }}" # keep secrets in Ansible VaultRun
ansible-playbook -i hosts.ini site.ymlThe playbook is idempotent — re-running it converges the server to the desired state without duplicating work.
After the Run
- Verify with the Explorer Verification checklist.
- Set up Monitoring.
- Store your inventory, variables, and vault files in version control so the deployment is reproducible.
Multi-Chain Use
Parameterize one inventory group per chain and reuse the same playbook. Keep databases and volumes strictly separate per chain — see Instance Management.
Prefer Not to Automate?
- Manual Setup with Docker — step-by-step equivalent
- Hosted EaaS — let OpenScan.AI run everything