Initial commit
Signed-off-by: Balazs Toldi <balazs@toldi.eu>
This commit is contained in:
commit
ce3e088a0f
2 changed files with 54 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
\#*\#
|
||||
*~
|
||||
ganache_data/
|
51
compose.yaml
Normal file
51
compose.yaml
Normal file
|
@ -0,0 +1,51 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
ganache:
|
||||
image: trufflesuite/ganache:latest
|
||||
ports:
|
||||
- 8545:8545
|
||||
volumes:
|
||||
- ./ganache_data:/ganache_data
|
||||
entrypoint:
|
||||
- node
|
||||
- /app/dist/node/cli.js
|
||||
- --deterministic
|
||||
- --db=/ganache_data
|
||||
- --hostname
|
||||
- '0.0.0.0'
|
||||
db:
|
||||
image: postgres:13.6
|
||||
restart: always
|
||||
container_name: 'postgres'
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ''
|
||||
POSTGRES_USER: 'postgres'
|
||||
POSTGRES_HOST_AUTH_METHOD: 'trust'
|
||||
volumes:
|
||||
- ./postgres-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 5432:5432
|
||||
|
||||
blockscout:
|
||||
depends_on:
|
||||
- db
|
||||
- ganache
|
||||
image: blockscout/blockscout:${DOCKER_TAG:-latest}
|
||||
restart: always
|
||||
container_name: 'blockscout'
|
||||
links:
|
||||
- db:database
|
||||
command: 'mix do ecto.create, ecto.migrate, phx.server'
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
environment:
|
||||
SUBNETWORK: Toldi
|
||||
ETHEREUM_JSONRPC_VARIANT: 'ganache'
|
||||
ETHEREUM_JSONRPC_HTTP_URL: http://ganache:8545/
|
||||
DATABASE_URL: postgresql://postgres:@db:5432/blockscout?ssl=false
|
||||
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: true
|
||||
CHAIN_ID: 1337
|
||||
ECTO_USE_SSL: false
|
||||
ports:
|
||||
- 4000:4000
|
||||
|
Loading…
Reference in a new issue