Created
October 13, 2022 13:34
-
-
Save isSerge/c1157d451227c8f6fab690d23bbe25a8 to your computer and use it in GitHub Desktop.
Subsquid Archive docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
db: | |
image: postgres:12 # CockroachDB cluster might be a better fit for production deployment | |
restart: always | |
volumes: | |
- /mnt/volume_subsquid_subspace/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://eu-0.gemini-2a.subspace.network/ws", | |
"-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://eu-1.gemini-2a.subspace.network/ws", | |
"-e", "wss://eu-2.gemini-2a.subspace.network/ws", | |
# "-c", "10", | |
# "-e", "wss://subspace-gemini-2a-rpc.dwellir.com", | |
# "--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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment