diff --git a/.env b/.env index 754d11e9..aacb73c9 100644 --- a/.env +++ b/.env @@ -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 @@ -52,4 +52,4 @@ NR_API_KEY="" NR_AGENT_IDENTIFIER="" SLACK_TOKEN="" -SLACK_CONVERSATION_ID="" \ No newline at end of file +SLACK_CONVERSATION_ID="" diff --git a/docker-compose.yml b/docker-compose.yml index 5834d78d..290a298e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -31,6 +31,7 @@ services: ports: - "30333:30333/tcp" - "30433:30433/tcp" + - "127.0.0.1:9944:9944/tcp" restart: unless-stopped command: [ @@ -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", @@ -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