Skip to content

Commit

Permalink
improve docker setup for node
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusDesk committed Nov 13, 2024
1 parent d8c38b3 commit 9cfdf53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ NETWORK_ID=mainnet
LOG_LEVEL=debug

# Mainnet
NODE_DOCKER_TAG="mainnet-2024-nov-05"
NODE_DOCKER_TAG=mainnet-2024-nov-13
# Testnet - Taurus
# NODE_DOCKER_TAG="taurus-candidate"

Expand All @@ -19,11 +19,11 @@ DB_PORT=5432
DB_HOST=postgres

# Mainnet
RPC_URLS="ws://caddy:80,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://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"
CHAIN_ID="0x66455a580aabff303720aa83adbe6c44502922251c03ba73686d5245da9e21bd"

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

HASURA_GRAPHQL_PORT=8080
Expand All @@ -39,7 +39,7 @@ DICTIONARY_DIRECTORY=autonomys
# Testnet - Taurus
# DICTIONARY_DIRECTORY=autonomys-taurus
DICTIONARY_SUBQUERY_NODE_PORT=3010
DICTIONARY_URL="http://dictionary_subquery_node:3000"
DICTIONARY_URL="http://dictionary_subquery_node:3010"

REDIS_PORT=6379

Expand Down
17 changes: 8 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ services:
"1000",
"--rpc-max-connections",
"20000",
"--farmer",
"--name",
"astral",
"--sync",
Expand Down Expand Up @@ -153,7 +152,7 @@ services:
DB_PASS: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_HOST: ${DB_HOST}
DB_PORT: 5432
DB_PORT: ${DB_PORT}
volumes:
- ./indexers/dictionary/${DICTIONARY_DIRECTORY}:/dictionary
healthcheck:
Expand Down Expand Up @@ -181,7 +180,7 @@ services:
DB_PASS: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_HOST: ${DB_HOST}
DB_PORT: 5432
DB_PORT: ${DB_PORT}
command:
- --name=dictionary
- --playground
Expand All @@ -201,12 +200,12 @@ services:
environment:
ENDPOINT: ${RPC_URLS}
CHAIN_ID: ${CHAIN_ID}
DICTIONARY: http://dictionary_subquery_node:3000
DICTIONARY: http://dictionary_subquery_node:${DICTIONARY_SUBQUERY_NODE_PORT}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_HOST: ${DB_HOST}
DB_PORT: 5432
DB_PORT: ${DB_PORT}
volumes:
- ./indexers/${NETWORK_ID}/consensus:/${NETWORK_ID}/consensus
command:
Expand Down Expand Up @@ -238,12 +237,12 @@ services:
environment:
ENDPOINT: ${RPC_URLS}
CHAIN_ID: ${CHAIN_ID}
DICTIONARY: http://dictionary_subquery_node:3000
DICTIONARY: http://dictionary_subquery_node:${DICTIONARY_SUBQUERY_NODE_PORT}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_HOST: ${DB_HOST}
DB_PORT: 5432
DB_PORT: ${DB_PORT}
volumes:
- ./indexers/${NETWORK_ID}/leaderboard:/${NETWORK_ID}/leaderboard
command:
Expand Down Expand Up @@ -274,12 +273,12 @@ services:
environment:
ENDPOINT: ${RPC_URLS}
CHAIN_ID: ${CHAIN_ID}
DICTIONARY: http://dictionary_subquery_node:3000
DICTIONARY: http://dictionary_subquery_node:${DICTIONARY_SUBQUERY_NODE_PORT}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_HOST: ${DB_HOST}
DB_PORT: 5432
DB_PORT: ${DB_PORT}
volumes:
- ./indexers/${NETWORK_ID}/staking:/${NETWORK_ID}/staking
command:
Expand Down

0 comments on commit 9cfdf53

Please sign in to comment.