Browse Source

start.sh fix env var setup to startup with docker-compose for indexer

Mokhtar Naamani 4 years ago
parent
commit
4579084680
2 changed files with 7 additions and 11 deletions
  1. 2 10
      docker-compose.yml
  2. 5 1
      start.sh

+ 2 - 10
docker-compose.yml

@@ -79,7 +79,7 @@ services:
       - "127.0.0.1:8081:${GRAPHQL_SERVER_PORT}"
     depends_on: 
       - db
-    command: ["workspace", "query-node-root", "server:start:prod"]
+    command: ["workspace", "query-node-root", "query-node:start:prod"]
 
   processor:
     image: joystream/apps
@@ -95,7 +95,7 @@ services:
       - TYPEORM_HOST=db
       - TYPEORM_DATABASE=${DB_NAME}
       - DEBUG=index-builder:*
-      - WS_PROVIDER_ENDPOINT_URI=ws://joystream-node:9944
+      - WS_PROVIDER_ENDPOINT_URI=${WS_PROVIDER_ENDPOINT_URI}
     depends_on:
       - hydra-indexer-gateway
     command: ["workspace", "query-node-root", "processor:start"]
@@ -152,11 +152,3 @@ services:
     ports:
       - "127.0.0.1:6379:6379"
 
-  # pioneer:
-  #   image: joystream/apps
-  #   build:
-  #     context: .
-  #     dockerfile: apps.Dockerfile
-  #   ports:
-  #     - "127.0.0.1:3000:3000"
-  #   command: workspace pioneer start

+ 5 - 1
start.sh

@@ -34,10 +34,14 @@ yarn workspace query-node-root db:prepare
 yarn workspace query-node-root db:migrate
 
 # Startup all query-node infrastructure services
+export WS_PROVIDER_ENDPOINT_URI=ws://joystream-node:9944
 docker-compose up -d graphql-server
 docker-compose up -d processor
 
-echo "press Ctrl+C to shutdown"
+echo "press Ctrl+C to shutdown the development network"
+echo 'run: `yarn workspace pioneer start` in a separate terminal to bring up an instance of pioneer and \
+point your browser to http://localhost:3000/ to access the UI
+'
 while true; do 
   read
 done