Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 42 additions & 56 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,56 +1,42 @@
PLATFORM=linux/amd64
#PLATFORM=linux/arm64
NODE_OPTIONS=--max-old-space-size=4096

# Postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres

# Pgadmin4
# NOTE: if you modify POSTGRES_USER/PASSWORD/DB then auto-imported server will not match and you need to setup
# your own with the modified values on the pgadmin website after first login.
[email protected]
PGADMIN_DEFAULT_PASSWORD=admin
PGADMIN_LISTEN_PORT=5050

# Subquery node options
BATCH_SIZE=100
# project.yaml tune on runtime
START_BLOCK=1

# Ref: https://academy.subquery.network/indexer/run_publish/references.html#subql-cli
SUBQUERY_NODE_EXTRA_PARAMS=""

# Check docs to see what else you can set here:
# Ref: https://academy.subquery.network/indexer/run_publish/references.html#subql-query
SUBQUERY_GRAPHQL_EXTRA_PARAMS=

# Localnet
# DB_SCHEMA=localnet
# CHAIN_ID=poktroll
# ENDPOINT=http://proxy:26657
# IMPORTANT: This require you copy genesis file into pocketdex at root as genesis.json which is tracked on .gitignore
# Also uncomment docker-compose.development.yaml `./genesis.json:/app/genesis.json`
# POCKETDEX_GENESIS=/app/genesis.json

# Testnet Beta
DB_SCHEMA=testnet_beta
CHAIN_ID=pocket-beta
ENDPOINT=https://shannon-testnet-grove-rpc.beta.poktroll.com
POCKETDEX_GENESIS=https://raw.githubusercontent.com/pokt-network/pocket-network-genesis/refs/heads/master/shannon/testnet-beta/genesis.json

# Testnet Alpha
# DB_SCHEMA=testnet_alpha
# CHAIN_ID=poktroll
# ENDPOINT=https://shannon-testnet-grove-rpc.alpha.poktroll.com
# POCKETDEX_GENESIS=https://raw.githubusercontent.com/pokt-network/pocket-network-genesis/refs/heads/master/shannon/testnet-alpha/genesis.json

# Subquery Graphql Engine
SUBQUERY_GRAPHQL_ENGINE_VERSION=latest
SUBQUERY_GRAPHQL_ENGINE_PORT=3001

# Pocketdex exclusive
POCKETDEX_DB_BATCH_SIZE=5000
POCKETDEX_DB_PAGE_LIMIT=5000

#####################################################################
# Network selector - pocketdex came with mainnet, beta and alpha
# ready to use with Grove public RPCs
#####################################################################

#NETWORK=mainnet

# For localnet it expect to be running on same poktroll localnet
# which can be turn on with `make localnet_up` on poktroll repository
# But alternative you can uncomment ENDPOINT and point to an external fullnode using http://IP:PORT to the RPC

#####################################################################
# PgAdmin email and password
#####################################################################

#PGADMIN_ENABLED=yes
#[email protected]
#PGADMIN_PASSWORD=pocketdex

#####################################################################
# Only for used when NETWORK=localnet
#####################################################################

#GENESIS_PATH=genesis.json

#####################################################################
# All this allow on the fly overides without modify kustomize files.
#####################################################################

#NODE_OPTIONS=--max-old-space-size=16384
#CHAIN_ID=
#ENDPOINT=http://your-full-node-ip:26657
#BATCH_SIZE=10
#START_BLOCK=1
#POCKETDEX_DB_BATCH_SIZE=10000
#POCKETDEX_DB_PAGE_LIMIT=10000
#POCKETDEX_DB_BULK_WRITE_CONCURRENCY=10
#PG_POOL_MIN=50
#PG_POOL_MAX=75
#PG_POOL_ACQUIRE=5000
#PG_POOL_IDLE=10000
#PG_POOL_EVICT=15000
14 changes: 3 additions & 11 deletions .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,9 @@ jobs:
uses: docker/[email protected]
if: ${{ inputs.env == 'production' }}
with:
file: docker/node.dockerfile
cache-from: type=gha
cache-to: type=gha,mode=min
platforms: ${{ inputs.platform }}

# development mode
- name: Build Development
uses: docker/[email protected]
if: ${{ inputs.env != 'production' }}
with:
file: docker/dev-node.dockerfile
file: tilt/docker/indexer.dockerfile
cache-from: type=gha
cache-to: type=gha,mode=min
build-args: |
BUILD_MODE=production
platforms: ${{ inputs.platform }}
Loading