Skip to content

Commit

Permalink
Merge pull request #953 from autonomys/hotfix/port-bindings
Browse files Browse the repository at this point in the history
fix port bindings and make local RPC archive node
  • Loading branch information
DaMandal0rian authored Nov 15, 2024
2 parents c306297 + cd13cf0 commit 98ca591
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ DB_PORT=5432
DB_HOST=postgres

# Mainnet
RPC_URLS="ws://caddy:8000,wss://rpc-0.mainnet.subspace.network/ws,wss://rpc-1.mainnet.subspace.network/ws,wss://rpc-0.mainnet.autonomys.xyz/ws,wss://rpc-1.mainnet.autonomys.xyz/ws"
RPC_URLS="ws://localhost:8000,wss://rpc-0.mainnet.subspace.network/ws,wss://rpc-1.mainnet.subspace.network/ws,wss://rpc-0.mainnet.autonomys.xyz/ws,wss://rpc-1.mainnet.autonomys.xyz/ws"
CHAIN_ID="0x66455a580aabff303720aa83adbe6c44502922251c03ba73686d5245da9e21bd"

# Testnet - Taurus
# RPC_URLS="ws://caddy:8000,wss://rpc-0.taurus.subspace.network/ws"
# RPC_URLS="ws://localhost:8000,wss://rpc-0.taurus.subspace.network/ws"
# CHAIN_ID="0x295aeafca762a304d92ee1505548695091f6082d3f0aa4d092ac3cd6397a6c5e"

HASURA_GRAPHQL_PORT=8080
Expand Down Expand Up @@ -52,4 +52,4 @@ NR_API_KEY=""
NR_AGENT_IDENTIFIER=""

SLACK_TOKEN=""
SLACK_CONVERSATION_ID=""
SLACK_CONVERSATION_ID=""
9 changes: 7 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
hard: 65536 # Hard limit for open files
image: caddy:latest
ports:
- "8000:9944" # Map external 8000
- "127.0.0.1:8000:8000"
volumes:
- ./indexers/Caddyfile:/etc/caddy/Caddyfile # Mount the Caddyfile
- caddy_data:/data # Volume for Let's Encrypt certificates
Expand All @@ -31,6 +31,7 @@ services:
ports:
- "30333:30333/tcp"
- "30433:30433/tcp"
- "127.0.0.1:9944:9944/tcp"
restart: unless-stopped
command:
[
Expand All @@ -39,6 +40,10 @@ services:
"${NETWORK_ID}",
"--base-path",
"/var/subspace",
"--state-pruning",
"archive",
"--blocks-pruning",
"archive",
"--listen-on",
"/ip4/0.0.0.0/tcp/30333",
"--dsn-listen-on",
Expand Down Expand Up @@ -168,7 +173,7 @@ services:
profiles: [dictionary, indexers]
image: onfinality/subql-query:latest
ports:
- "${DICTIONARY_SUBQUERY_NODE_PORT}:3000"
- "127.0.0.1:${DICTIONARY_SUBQUERY_NODE_PORT}:3000"
depends_on:
"postgres":
condition: service_healthy
Expand Down

0 comments on commit 98ca591

Please sign in to comment.