-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.spaceneth.yml
91 lines (86 loc) · 2.75 KB
/
docker-compose.spaceneth.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
circles-spaceneth:
depends_on:
- db2
restart: unless-stopped
build:
context: .
dockerfile: ./x64.debug.spaceneth.Dockerfile
network_mode: host
environment:
- V1_HUB_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3
- V2_HUB_ADDRESS=0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512
- START_BLOCK=0
- POSTGRES_CONNECTION_STRING=Server=localhost;Port=5432;User Id=postgres;Password=postgres;Database=postgres;Include Error Detail=true;
volumes:
- .state/nethermind-spaceneth/spaceneth_db:/nethermind/spaceneth_db
- .state/nethermind-spaceneth/logs:/nethermind/logs
- .state/nethermind-spaceneth/keystore:/nethermind/keystore
redis_db:
image: 'redis:alpine'
ports:
- 6379:6379
container_name: redis_db
command: redis-server
restart: unless-stopped
volumes:
- .state/redis-spaceneth:/data
db:
image: postgres:14
command: -c 'max_connections=500'
restart: unless-stopped
container_name: 'postgres'
environment:
POSTGRES_PASSWORD: ''
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
volumes:
- .state/postgres-spaceneth:/var/lib/postgresql/data
ports:
- 7432:5432
db2:
image: postgres:14
command: -c 'max_connections=500'
restart: unless-stopped
network_mode: host
container_name: 'postgres2'
environment:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'postgres'
volumes:
- .state/postgres2-spaceneth:/var/lib/postgresql/data
ports:
- 5432:5432
blockscout:
depends_on:
- db
- smart-contract-verifier
- redis_db
- circles-spaceneth
image: blockscout/blockscout:${DOCKER_TAG:-latest}
restart: unless-stopped
container_name: 'blockscout'
links:
- db:database
command: sh -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: 'nethermind'
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:8545/
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
ECTO_USE_SSL: 'false'
SECRET_KEY_BASE: '56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN'
ports:
- 4000:4000
smart-contract-verifier:
image: ghcr.io/blockscout/smart-contract-verifier:${SMART_CONTRACT_VERIFIER_DOCKER_TAG:-latest}
restart: no
container_name: 'smart-contract-verifier'
env_file:
- ./envs/common-smart-contract-verifier.env
ports:
- 8043:8043