-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-no-build-geth.yml
37 lines (35 loc) · 1.06 KB
/
docker-compose-no-build-geth.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3.8'
services:
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:
- 7432:5432
blockscout:
depends_on:
- db
image: explorer # Run 'docker build -t explorer -f docker/Dockerfile .' on parent folder before running docker compose, otherwise image won't be found
restart: always
container_name: 'explorer'
links:
- db:database
command: 'mix do ecto.create, ecto.migrate, phx.server'
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
- ./envs/common-blockscout.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
#BLOCK_TRANSFORMER: 'clique'
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
ECTO_USE_SSL: 'false'
ports:
- 4000:4000