metmirr пре 4 година
родитељ
комит
64f2a44010
3 измењених фајлова са 3 додато и 20 уклоњено
  1. 0 20
      .env
  2. 2 0
      docker-compose.yml
  3. 1 0
      query-node/db-migrate.sh

+ 0 - 20
.env

@@ -16,30 +16,10 @@ TYPEORM_LOGGING=error
 #    Indexer options      #
 ###########################
 
-# Substrate endpoint to source events from
-WS_PROVIDER_ENDPOINT_URI=ws://localhost:9944/
-
 # Block height to start indexing from.
 # Note, that if there are already some indexed events, this setting is ignored
 BLOCK_HEIGHT=0
 
-# Redis cache server
-REDIS_URI=redis://localhost:6379/0
-
-###########################
-#    Processor options    #
-###########################
-
-# Where the mapping scripts are located, relative to ./generated/indexer
-TYPES_JSON=../../../types/augment/all/defs.json
-
-# Indexer GraphQL API endpoint to fetch indexed events
-INDEXER_ENDPOINT_URL=http://localhost:4000/graphql
-
-# Block height from which the processor starts. Note that if
-# there are already processed events in the database, this setting is ignored
-BLOCK_HEIGHT=0
-
 ###############################
 #    Processor GraphQL API    #
 ###############################

+ 2 - 0
docker-compose.yml

@@ -93,6 +93,8 @@ services:
     environment:
       - POLL_INTERVAL_MS=300
       - DEBUG=hydra-processor:*
+      - DB_HOST=db
+      - INDEXER_ENDPOINT_URL=http://indexer-api-gateway:4002/graphql
     depends_on:
       - indexer-api-gateway
     command: ["workspace", "query-node-root", "processor:start"]

+ 1 - 0
query-node/db-migrate.sh

@@ -9,6 +9,7 @@ set -a
 set +a
 
 yarn workspace query-node-root db:schema:migrate
+
 yarn hydra-processor migrate --env=../.env
 
 yarn workspace query-node-root db:init