forked from subsquid/substrate-archive-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-evm.yml
61 lines (57 loc) · 2 KB
/
docker-compose-evm.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
services:
db:
image: postgres:12 # CockroachDB cluster might be a better fit for production deployment
restart: always
volumes:
- /var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: squid-archive
ingest:
depends_on:
- db
restart: on-failure
image: subsquid/substrate-ingest:firesquid
command: [
# for moonbase-alpha
"-e", "wss://wss.api.moonbase.moonbeam.network",
"-c", "10", # allow up to 20 pending requests for the above endpoint (default is 5)
# add another endpoint to increase archiving speed and reliability.
"-e", "wss://moonbase-alpha.public.blastapi.io",
"-e", "wss://moonbeam-alpha.api.onfinality.io/public-ws",
"-c", "10",
"-e", "wss://public-rpc.pinknode.io/alphanet",
# "--start-block", "1000000", # uncomment to specify a non-zero start block
"--out", "postgres://postgres:postgres@db:5432/squid-archive"
]
ports:
- "9090:9090" # prometheus port
gateway:
depends_on:
- db
image: subsquid/substrate-gateway:firesquid
environment:
RUST_LOG: "substrate_gateway=info,actix_server=info"
command: [
"--database-url", "postgres://postgres:postgres@db:5432/squid-archive",
"--database-max-connections", "3", # max number of concurrent database connections
"--evm-support" # uncomment for chains with Frontier EVM pallet
# (e.g. Moonbeam/Moonriver or Astar/Shiden)
]
ports:
- "8888:8000"
# Explorer service is optional.
# It provides rich GraphQL API for querying archived data.
# Many developers find it very useful for exploration and debugging.
explorer:
image: subsquid/substrate-explorer:firesquid
environment:
DB_TYPE: postgres # set to `cockroach` for Cockroach DB
DB_HOST: db
DB_PORT: "5432"
DB_NAME: "squid-archive"
DB_USER: "postgres"
DB_PASS: "postgres"
ports:
- "4444:3000"