You will use the
docker-compose.yml
file.Prerequisites
- Docker v20.10+
- Docker-compose 2.x.x+
- Running Ethereum JSON RPC client
Migration
1) Pull changes from the master branch
We assume Blockscout is already deployed in your environment.2) Navigate to the docker compose folder
3) Adjust backend envs for your instance
Replace the example environment variables in theenvironment:
list of the docker-compose.yml
file.
environment:
list. Replace these with env vars from your existing backend. The only one you NEED to keep is API_V2_ENABLED='true'
. Any values added here will override existing variables when starting the docker container.
4) Run docker compose
Run all containers (up) and run processes in the background (-d).5) Check the proxy configuration
It may take several minutes for the frontend to propagate during this process.
6) Adjust frontend ENVs if needed
There are several required ENVs for the frontend. If required variables are missing or invalid the frontend will show in error message and will not run the app.- The common list of frontend ENVs and descriptions.
- A detailed list with all available ENVs is in the frontend repo folder.
7) Check Microservice ENVs
Typically the default values will provide what you need for thecommon-visualizer.env
, common-stats.env
, and common-smart-contract-verifier.env
files.
Note that in the smart-contract-verifier.envs
the SMART_CONTRACT_VERIFIER__SOLIDITY__FETCHER__LIST__LIST_URL
variable is different depending on your OS. The default is Linux, if you are running macOS or Windows be sure to comment out the appropriate variables.