Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockscout/docker-compose/docker-compose-no-build-no-...

68 lines
1.9 KiB

version: '3.8'
services:
redis_db:
image: 'redis:alpine'
ports:
- 6379:6379
container_name: redis_db
command: redis-server
volumes:
- ./redis-data:/data
blockscout:
platform: linux/x86_64
depends_on:
- smart-contract-verifier
- redis_db
image: blockscout/blockscout:${DOCKER_TAG:-latest}
pull_policy: always
restart: always
container_name: 'blockscout'
command: bash -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:5432/blockscout?ssl=false
ECTO_USE_SSL: 'false'
SECRET_KEY_BASE: '56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN'
ports:
- 4000:4000
volumes:
- ./logs/:/app/logs/
smart-contract-verifier:
platform: linux/x86_64
image: ghcr.io/blockscout/smart-contract-verifier:${SMART_CONTRACT_VERIFIER_DOCKER_TAG:-latest}
pull_policy: always
restart: always
container_name: 'smart-contract-verifier'
env_file:
- ./envs/common-smart-contract-verifier.env
ports:
- 8043:8043
visualizer:
platform: linux/x86_64
image: ghcr.io/blockscout/visualizer:${VISUALIZER_DOCKER_TAG:-latest}
pull_policy: always
restart: always
container_name: 'visualizer'
env_file:
- ./envs/common-visualizer.env
ports:
- 8050:8050
sig-provider:
platform: linux/x86_64
image: ghcr.io/blockscout/sig-provider:${SIG_PROVIDER_DOCKER_TAG:-latest}
pull_policy: always
restart: always
container_name: 'sig-provider'
ports:
- 8051:8050