mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-22 01:57:58 +00:00
a4a5314f79
- payout-bot/bot.js: Periodically calls payoutStakersByPage for all validators in completed eras. Runs every 10 minutes. - payout-bot/Dockerfile: Node 20 alpine with @pezkuwi/api - docker-compose.prod.yml: Add payout-bot service with secret mnemonic
184 lines
4.4 KiB
YAML
184 lines
4.4 KiB
YAML
services:
|
|
postgres:
|
|
container_name: postgres-pezkuwi
|
|
image: postgres:16-alpine
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
- ./docker/init:/docker-entrypoint-initdb.d
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
environment:
|
|
POSTGRES_PASSWORD: pezkuwi_subquery_2024
|
|
restart: always
|
|
|
|
subquery-node-relay:
|
|
container_name: node-pezkuwi-relay
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile.node
|
|
depends_on:
|
|
postgres: { condition: service_healthy }
|
|
restart: always
|
|
environment:
|
|
TZ: UTC
|
|
DB_USER: postgres
|
|
DB_PASS: pezkuwi_subquery_2024
|
|
DB_DATABASE: postgres
|
|
DB_HOST: postgres
|
|
DB_PORT: 5432
|
|
volumes:
|
|
- ./:/app/project
|
|
command:
|
|
- -f=/app/project/pezkuwi.yaml
|
|
- --db-schema=subquery-pezkuwi-staking
|
|
- --disable-historical=true
|
|
- --batch-size=30
|
|
|
|
subquery-node-assethub:
|
|
container_name: node-pezkuwi-assethub
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile.node
|
|
depends_on:
|
|
postgres: { condition: service_healthy }
|
|
restart: always
|
|
environment:
|
|
TZ: UTC
|
|
DB_USER: postgres
|
|
DB_PASS: pezkuwi_subquery_2024
|
|
DB_DATABASE: postgres
|
|
DB_HOST: postgres
|
|
DB_PORT: 5432
|
|
volumes:
|
|
- ./:/app/project
|
|
command:
|
|
- -f=/app/project/pezkuwi-assethub.yaml
|
|
- --db-schema=subquery-pezkuwi-assethub
|
|
- --disable-historical=true
|
|
- --batch-size=30
|
|
|
|
graphql-engine:
|
|
container_name: query-pezkuwi
|
|
image: onfinality/subql-query:v1.5.0
|
|
ports:
|
|
- 3000:3000
|
|
depends_on:
|
|
- subquery-node-relay
|
|
restart: always
|
|
environment:
|
|
DB_USER: postgres
|
|
DB_PASS: pezkuwi_subquery_2024
|
|
DB_DATABASE: postgres
|
|
DB_HOST: postgres
|
|
DB_PORT: 5432
|
|
command:
|
|
- --name=subquery-pezkuwi-staking
|
|
- --playground
|
|
- --indexer=http://subquery-node-relay:3000
|
|
|
|
graphql-engine-assethub:
|
|
container_name: query-pezkuwi-ah
|
|
image: onfinality/subql-query:v1.5.0
|
|
ports:
|
|
- 3001:3000
|
|
depends_on:
|
|
- subquery-node-assethub
|
|
restart: always
|
|
environment:
|
|
DB_USER: postgres
|
|
DB_PASS: pezkuwi_subquery_2024
|
|
DB_DATABASE: postgres
|
|
DB_HOST: postgres
|
|
DB_PORT: 5432
|
|
command:
|
|
- --name=subquery-pezkuwi-assethub
|
|
- --playground
|
|
- --indexer=http://subquery-node-assethub:3000
|
|
|
|
subquery-node-governance:
|
|
container_name: node-pezkuwi-governance
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile.node
|
|
depends_on:
|
|
postgres: { condition: service_healthy }
|
|
restart: always
|
|
environment:
|
|
TZ: UTC
|
|
DB_USER: postgres
|
|
DB_PASS: pezkuwi_subquery_2024
|
|
DB_DATABASE: postgres
|
|
DB_HOST: postgres
|
|
DB_PORT: 5432
|
|
volumes:
|
|
- ./:/app/project
|
|
command:
|
|
- -f=/app/project/pezkuwi-governance.yaml
|
|
- --db-schema=subquery-pezkuwi-governance
|
|
- --disable-historical=true
|
|
- --batch-size=30
|
|
|
|
graphql-engine-governance:
|
|
container_name: query-pezkuwi-gov
|
|
image: onfinality/subql-query:v1.5.0
|
|
ports:
|
|
- 3002:3000
|
|
depends_on:
|
|
- subquery-node-governance
|
|
restart: always
|
|
environment:
|
|
DB_USER: postgres
|
|
DB_PASS: pezkuwi_subquery_2024
|
|
DB_DATABASE: postgres
|
|
DB_HOST: postgres
|
|
DB_PORT: 5432
|
|
command:
|
|
- --name=subquery-pezkuwi-governance
|
|
- --playground
|
|
- --indexer=http://subquery-node-governance:3000
|
|
|
|
noter-bot:
|
|
container_name: noter-pezkuwi
|
|
build:
|
|
context: ./noter
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
postgres: { condition: service_healthy }
|
|
restart: unless-stopped
|
|
secrets:
|
|
- noter_mnemonic
|
|
environment:
|
|
TZ: UTC
|
|
RELAY_RPC: ws://217.77.6.126:9944
|
|
ASSET_HUB_RPC: ws://217.77.6.126:40944
|
|
PEOPLE_RPC: ws://217.77.6.126:41944
|
|
SCAN_INTERVAL_MS: "300000"
|
|
|
|
payout-bot:
|
|
container_name: payout-pezkuwi
|
|
build:
|
|
context: ./payout-bot
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
secrets:
|
|
- payout_mnemonic
|
|
environment:
|
|
TZ: UTC
|
|
ASSET_HUB_RPC: wss://asset-hub-rpc.pezkuwichain.io
|
|
MNEMONIC_FILE: /run/secrets/payout_mnemonic
|
|
INTERVAL_MS: "600000"
|
|
|
|
secrets:
|
|
noter_mnemonic:
|
|
file: ./secrets/noter_mnemonic.txt
|
|
payout_mnemonic:
|
|
file: ./secrets/payout_mnemonic.txt
|
|
|
|
volumes:
|
|
pgdata:
|