-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yml
88 lines (84 loc) · 3.3 KB
/
docker-compose.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
version: "3.7"
services:
node:
build:
context: .
dockerfile: Dockerfile.${JSONRPC_VARIANT:-hardhat}
ports:
- 8545:8545
redis_db:
image: "redis:alpine"
ports:
- 6379:6379
container_name: redis_db
command: redis-server
volumes:
- ./redis-data:/data
db:
image: postgres:14
restart: always
container_name: "postgres"
environment:
POSTGRES_PASSWORD: ""
POSTGRES_USER: "postgres"
POSTGRES_HOST_AUTH_METHOD: "trust"
ports:
- 7432:5432
blockscout:
depends_on:
- db
- smart-contract-verifier
- redis_db
image: blockscout/blockscout:${DOCKER_TAG:-latest}
restart: always
container_name: "blockscout"
links:
- db:database
command: bash -c "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
PORT: 4000
ETHEREUM_JSONRPC_VARIANT: "geth"
ETHEREUM_JSONRPC_HTTP_URL: http://host.docker.internal:8545/
ETHEREUM_JSONRPC_WS_URL: ws://host.docker.internal:8545/
ETHEREUM_JSONRPC_TRACE_URL: http://host.docker.internal:8545/
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
DATABASE_URL: postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
ECTO_USE_SSL: "false"
SECRET_KEY_BASE: "56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN"
SUBNETWORK: ParaSpace chain
ACCOUNT_ENABLED: "false"
ACCOUNT_REDIS_URL: redis://redis_db:6379
RUST_VERIFICATION_SERVICE_URL: http://host.docker.internal:8043/
ENABLE_RUST_VERIFICATION_SERVICE: "true"
ALLOWED_EVM_VERSIONS: homestead,tangerineWhistle,spuriousDragon,byzantium,constantinople,petersburg,istanbul,berlin,london,default
POOL_SIZE: 40
POOL_SIZE_API: 10
DISABLE_INDEXER: ${BLOCKSCOUT_DISABLE_INDEXER:-true}
ports:
- 4000:4000
volumes:
- ./logs/:/app/logs/
smart-contract-verifier:
image: ghcr.io/blockscout/smart-contract-verifier:${SMART_CONTRACT_VERIFIER_DOCKER_TAG:-latest}
restart: always
container_name: "smart-contract-verifier"
environment:
SMART_CONTRACT_VERIFIER__SERVER__ADDR: 0.0.0.0:8043
SMART_CONTRACT_VERIFIER__SOLIDITY__ENABLED: "true"
SMART_CONTRACT_VERIFIER__SOLIDITY__COMPILERS_DIR: /tmp/solidity-compilers
SMART_CONTRACT_VERIFIER__SOLIDITY__REFRESH_VERSIONS_SCHEDULE: 0 0 * * * * *
SMART_CONTRACT_VERIFIER__SOLIDITY__FETCHER__LIST__LIST_URL: https://solc-bin.ethereum.org/linux-amd64/list.json
SMART_CONTRACT_VERIFIER__VYPER__ENABLED: "true"
SMART_CONTRACT_VERIFIER__VYPER__COMPILERS_DIR: /tmp/vyper-compilers
SMART_CONTRACT_VERIFIER__VYPER__FETCHER__LIST__LIST_URL: https://raw.githubusercontent.com/blockscout/solc-bin/main/vyper.list.json
SMART_CONTRACT_VERIFIER__VYPER__REFRESH_VERSIONS_SCHEDULE: 0 0 * * * * *
SMART_CONTRACT_VERIFIER__SOURCIFY__ENABLED: "true"
SMART_CONTRACT_VERIFIER__SOURCIFY__API_URL: https://sourcify.dev/server/
SMART_CONTRACT_VERIFIER__SOURCIFY__VERIFICATION_ATTEMPTS: 3
SMART_CONTRACT_VERIFIER__SOURCIFY__REQUEST_TIMEOUT: 10
SMART_CONTRACT_VERIFIER__METRICS__ENABLED: "false"
SMART_CONTRACT_VERIFIER__JAEGER__ENABLED: "false"
ports:
- 8043:8043