Skip to content

Commit

Permalink
Add blockscout and postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienmo authored and Adrien Moreau committed Sep 27, 2023
1 parent f1f54b8 commit 2b46ac9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions suave/devenv/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,30 @@ services:
- --ws
ports:
- 8555:8545
postgres:
image: postgres:14
restart: always
container_name: 'postgres'
command: postgres -c 'max_connections=200' -c listen_addresses='*'
environment:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
ports:
- 7432:5432
blockscout:
image: adrienmo/blockscout:suave
command: sh -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
ports:
- 4000:4000
environment:
PORT: 4000
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/blockscout
ECTO_USE_SSL: false
MICROSERVICE_SC_VERIFIER_ENABLED: false
ETHEREUM_JSONRPC_TRACE_URL: http://suave-mevm:8545
ETHEREUM_JSONRPC_HTTP_URL: http://suave-mevm:8545
ETHEREUM_JSONRPC_VARIANT: geth
COIN: ETH
MIX_ENV: prod
SECRET_KEY_BASE: VTIB3uHDNbvrY0+60ZWgUoUBKDn9ppLR8MI4CpRz4/qLyEFs54ktJfaNT6Z221No

0 comments on commit 2b46ac9

Please sign in to comment.