PostgreSQL
server. This is provided by starting the script (new docker image will be created named postgres
)make start
- Sets everything up and starts BlockScout in a docker container. To connect it to your local environment, configure using the ENV variables described below.ganache
instance running on port 2000
on Mac/Windows:localhost:4000
host.docker.internal
- that is available in the container and routed to your local machine.--network=host
and all services are available on localhost
Makefile
completes migrations on PostgreSQL
creation.make migrate
command.ETHEREUM_JSONRPC_VARIANT
environment variable.sudo with make start
command sinceBasically, whenever one usessudo
with the Makefile/Docker, it causes this error of not being able to communicate with the node.
parity
- Parity JSON RPC (works for OpenEthereum & Nethermind client as well) (Default)geth
- Geth JSON RPCbesu
- Hyperledger Besu RPCganache
- Ganache JSON RPCETHEREUM_JSONRPC_VARIANT
parity
, geth
, besu
or ganache
parity
ETHEREUM_JSONRPC_HTTP_URL
geth
or ganache
variantETHEREUM_JSONRPC_WS_URL
ETHEREUM_JSONRPC_TRACE_URL
parity
varianthttp://localhost:8545
COIN
POA
LOGO
NETWORK
SUBNETWORK
NETWORK_ICON
NETWORK_PATH
/
ETHEREUM_JSONRPC_HTTP_URL
default values:parity
- http://localhost:8545
geth
- https://mainnet.infura.io/8lTvJTKmHPCHazkneJsY
besu
- http://localhost:8545
ganache
- http://localhost:7545
ETHEREUM_JSONRPC_WS_URL
default values:parity
- ws://localhost:8546
geth
- wss://mainnet.infura.io/8lTvJTKmHPCHazkneJsY/ws
besu
- ws://localhost:8546
ganache
- ws://localhost:7545
docker\Makefile
:$(DOCKER_IMAGE) /bin/sh -c "echo $MIX_ENV && mix do ecto.create, ecto.migrate"
$(DOCKER_IMAGE) //bin/sh -c "echo $MIX_ENV && mix do ecto.create, ecto.migrate"
$(DOCKER_IMAGE) /bin/sh -c "mix phx.server"
$(DOCKER_IMAGE) //bin/sh -c "mix phx.server"