This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose.yml
63 lines (60 loc) · 2.19 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
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: [
# polkadot endpoints -- replace with your wss
"-e", "wss://polkadot-rpc.polkadot.io",
"-c", "10", # allow up to 20 pending requests for the above endpoint (default is 5)
# for a local setup use 'host.docker.internal' as a host (instead of localhost or 127.0.0.1
# e.g. "-e", "ws://host.docker.internal:9944",
# add another endpoint to increase archiving speed and reliability.
"-e", "wss://polkadot-rpc.dwellir.com",
"-e", "wss://polkadot.api.onfinality.io/public-ws",
"-c", "10",
"-e", "wss://polkadot.public.curie.radiumblock.io/ws",
# "--start-block", "1000000", # uncomment to specify a non-zero start block
"--prom-port", "9090",
"--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"