mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-04-22 01:57:58 +00:00
076b54bdc9
- Add StakingApy, ActiveStaker, Reward entities to schema.graphql - Add APY calculation engine in NewEra.ts (inflation curve + validator commission) - Add saveMultiStakingReward to Rewards.ts and PoolRewards.ts - Add handleAssetTransfer for assets.Transferred events - Add constants.ts with genesis hashes and inflation params - Add docker-compose.prod.yml for production deployment (relay + assethub nodes) - Add deploy-vps.yml GitHub Actions workflow for auto-deploy on push
80 lines
1.9 KiB
YAML
80 lines
1.9 KiB
YAML
version: "3.8"
|
|
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
|
|
image: onfinality/subql-node:latest
|
|
depends_on:
|
|
postgres: { condition: service_healthy }
|
|
restart: always
|
|
environment:
|
|
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
|
|
- --disable-historical=true
|
|
- --batch-size=30
|
|
|
|
subquery-node-assethub:
|
|
container_name: node-pezkuwi-assethub
|
|
image: onfinality/subql-node:latest
|
|
depends_on:
|
|
postgres: { condition: service_healthy }
|
|
restart: always
|
|
environment:
|
|
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
|
|
- --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
|
|
- 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-staking
|
|
- --playground
|
|
- --indexer=http://subquery-node-relay:3000
|
|
|
|
volumes:
|
|
pgdata:
|