Browse Source

Use non mounted docker containers in start.sh

Anuj Bansal 3 years ago
parent
commit
e00a512889
2 changed files with 8 additions and 8 deletions
  1. 6 6
      docker-compose.yml
  2. 2 2
      start.sh

+ 6 - 6
docker-compose.yml

@@ -25,7 +25,7 @@ services:
       context: .
       dockerfile: colossus.Dockerfile
     depends_on:
-      - graphql-server-mnt
+      - graphql-server
     volumes:
       - /data
       - /keystore
@@ -43,7 +43,7 @@ services:
       - .env
     environment:
       - COLOSSUS_PORT=3333
-      - QUERY_NODE_HOST=graphql-server-mnt:4002
+      - QUERY_NODE_HOST=graphql-server:4002
       - WORKER_ID=0
       - ACCOUNT_URI=//Alice
 
@@ -54,16 +54,16 @@ services:
       context: .
       dockerfile: distributor-node.Dockerfile
     depends_on:
-      - graphql-server-mnt
+      - graphql-server
     volumes:
       - /data
       - /cache
     ports:
       - 127.0.0.1:3334:3334
     # Node configuration can be overriden via env, for exampe:
-    # environment:
-    #   JOYSTREAM_DISTRIBUTOR__ID: node-id
-    #   JOYSTREAM_DISTRIBUTOR__ENDPOINTS__QUERY_NODE: qn-endpoint
+    environment:
+      # JOYSTREAM_DISTRIBUTOR__ID: node-id
+      JOYSTREAM_DISTRIBUTOR__ENDPOINTS__QUERY_NODE: http://graphql-server:4002/graphql
     #   JOYSTREAM_DISTRIBUTOR__ENDPOINTS__SUBSTRATE_NODE: sn-endpoint
     #   JOYSTREAM_DISTRIBUTOR__ENDPOINTS__ELASTIC_SEARCH: es-endpoint
     #   JOYSTREAM_DISTRIBUTOR__DIRECTORIES__DATA: data-dir

+ 2 - 2
start.sh

@@ -41,8 +41,8 @@ yarn workspace query-node-root db:migrate
 export DB_HOST=db
 
 # Start processor and graphql server
-docker-compose up -d processor-mnt
-docker-compose up -d graphql-server-mnt
+docker-compose up -d processor
+docker-compose up -d graphql-server
 
 ## Storage Infrastructure
 docker-compose up -d colossus