|
@@ -18,8 +18,9 @@ services:
|
|
|
- '127.0.0.1:9944:9944'
|
|
|
- '127.0.0.1:9933:9933'
|
|
|
|
|
|
- colossus:
|
|
|
+ colossus-1:
|
|
|
image: joystream/colossus:latest
|
|
|
+ container_name: colossus-1
|
|
|
restart: on-failure
|
|
|
build:
|
|
|
context: .
|
|
@@ -30,20 +31,21 @@ services:
|
|
|
- /data
|
|
|
- /keystore
|
|
|
ports:
|
|
|
- - '127.0.0.1:3333:${COLOSSUS_PORT}'
|
|
|
+ - '127.0.0.1:3333:3333'
|
|
|
env_file:
|
|
|
# relative to working directory where docker-compose was run from
|
|
|
- .env
|
|
|
environment:
|
|
|
- COLOSSUS_PORT=3333
|
|
|
- - QUERY_NODE_HOST=graphql-server-mnt:${GRAPHQL_SERVER_PORT}
|
|
|
+ - QUERY_NODE_HOST=graphql-server:${GRAPHQL_SERVER_PORT}
|
|
|
- WORKER_ID=0
|
|
|
- - ACCOUNT_URI=//Alice
|
|
|
+ - ACCOUNT_URI=//testing//worker//Storage//0
|
|
|
# enable ElasticSearch server
|
|
|
# - ELASTIC_SEARCH_HOST=host.docker.internal:9200
|
|
|
|
|
|
- distributor-node:
|
|
|
+ distributor-1:
|
|
|
image: joystream/distributor-node
|
|
|
+ container_name: distributor-1
|
|
|
restart: on-failure
|
|
|
build:
|
|
|
context: .
|
|
@@ -53,12 +55,75 @@ services:
|
|
|
volumes:
|
|
|
- /data
|
|
|
- /cache
|
|
|
+ - /logs
|
|
|
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: http://${GRAPHQL_SERVER_HOST}:${GRAPHQL_SERVER_PORT}/graphql
|
|
|
+ JOYSTREAM_DISTRIBUTOR__KEYS: "[{\"suri\":\"//testing//workers//Distribution//0\"}]"
|
|
|
+ JOYSTREAM_DISTRIBUTOR__WORKER_ID: 0
|
|
|
+ JOYSTREAM_DISTRIBUTOR__PORT: 3334
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__ENDPOINTS__JOYSTREAM_NODE_WS: sn-endpoint
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__ENDPOINTS__ELASTIC_SEARCH: es-endpoint
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__DIRECTORIES__ASSETS: assets-dir
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__DIRECTORIES__CACHE_STATE: cache-state-dir
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__DIRECTORIES__LOGS: logs-dir
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__LOG__CONSOLE: "off"
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__LOG__FILE: "off"
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__LOG__ELASTIC: "off"
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__LIMITS__STORAGE: 50G
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__BUCKETS: "[1,2]"
|
|
|
+ command: ["start"]
|
|
|
+
|
|
|
+ colossus-2:
|
|
|
+ image: joystream/colossus:latest
|
|
|
+ container_name: colossus-2
|
|
|
+ restart: on-failure
|
|
|
+ build:
|
|
|
+ context: .
|
|
|
+ dockerfile: colossus.Dockerfile
|
|
|
+ depends_on:
|
|
|
+ - graphql-server
|
|
|
+ volumes:
|
|
|
+ - /data
|
|
|
+ - /keystore
|
|
|
+ ports:
|
|
|
+ - '127.0.0.1:3335:3333'
|
|
|
+ env_file:
|
|
|
+ # relative to working directory where docker-compose was run from
|
|
|
+ - .env
|
|
|
+ environment:
|
|
|
+ - COLOSSUS_PORT=3333
|
|
|
+ - QUERY_NODE_HOST=graphql-server:${GRAPHQL_SERVER_PORT}
|
|
|
+ - WORKER_ID=1
|
|
|
+ - ACCOUNT_URI=//testing//worker//Storage//1
|
|
|
+ # enable ElasticSearch server
|
|
|
+ # - ELASTIC_SEARCH_HOST=host.docker.internal:9200
|
|
|
+
|
|
|
+ distributor-2:
|
|
|
+ image: joystream/distributor-node
|
|
|
+ container_name: distributor-2
|
|
|
+ restart: on-failure
|
|
|
+ build:
|
|
|
+ context: .
|
|
|
+ dockerfile: distributor-node.Dockerfile
|
|
|
+ depends_on:
|
|
|
+ - graphql-server
|
|
|
+ volumes:
|
|
|
+ - /data
|
|
|
+ - /cache
|
|
|
+ - /logs
|
|
|
+ ports:
|
|
|
+ - 127.0.0.1:3336:3334
|
|
|
+ # Node configuration can be overriden via env, for exampe:
|
|
|
+ environment:
|
|
|
+ # JOYSTREAM_DISTRIBUTOR__ID: node-id
|
|
|
+ JOYSTREAM_DISTRIBUTOR__ENDPOINTS__QUERY_NODE: http://${GRAPHQL_SERVER_HOST}:${GRAPHQL_SERVER_PORT}/graphql
|
|
|
+ JOYSTREAM_DISTRIBUTOR__KEYS: "[{\"suri\":\"//testing//workers//Distribution//1\"}]"
|
|
|
+ JOYSTREAM_DISTRIBUTOR__WORKER_ID: 1
|
|
|
+ JOYSTREAM_DISTRIBUTOR__PORT: 3334
|
|
|
# JOYSTREAM_DISTRIBUTOR__ENDPOINTS__JOYSTREAM_NODE_WS: sn-endpoint
|
|
|
# JOYSTREAM_DISTRIBUTOR__ENDPOINTS__ELASTIC_SEARCH: es-endpoint
|
|
|
# JOYSTREAM_DISTRIBUTOR__DIRECTORIES__ASSETS: assets-dir
|
|
@@ -68,14 +133,12 @@ services:
|
|
|
# JOYSTREAM_DISTRIBUTOR__LOG__FILE: "off"
|
|
|
# JOYSTREAM_DISTRIBUTOR__LOG__ELASTIC: "off"
|
|
|
# JOYSTREAM_DISTRIBUTOR__LIMITS__STORAGE: 50G
|
|
|
- # JOYSTREAM_DISTRIBUTOR__PORT: 1234
|
|
|
- # JOYSTREAM_DISTRIBUTOR__KEYS="[{\"suri\":\"//Bob\"}]"
|
|
|
# JOYSTREAM_DISTRIBUTOR__BUCKETS: "[1,2]"
|
|
|
- # JOYSTREAM_DISTRIBUTOR__WORKER_ID: 0
|
|
|
command: ["start"]
|
|
|
|
|
|
db:
|
|
|
image: postgres:12
|
|
|
+ container_name: db
|
|
|
restart: always
|
|
|
ports:
|
|
|
- '127.0.0.1:${DB_PORT}:5432'
|
|
@@ -90,24 +153,8 @@ services:
|
|
|
POSTGRES_DB: ${INDEXER_DB_NAME}
|
|
|
|
|
|
graphql-server:
|
|
|
- image: joystream/apps
|
|
|
- restart: unless-stopped
|
|
|
- build:
|
|
|
- context: .
|
|
|
- dockerfile: apps.Dockerfile
|
|
|
- args:
|
|
|
- - WS_PROVIDER_ENDPOINT_URI=${WS_PROVIDER_ENDPOINT_URI}
|
|
|
- env_file:
|
|
|
- # relative to working directory where docker-compose was run from
|
|
|
- - .env
|
|
|
- ports:
|
|
|
- - '127.0.0.1:8081:${GRAPHQL_SERVER_PORT}'
|
|
|
- depends_on:
|
|
|
- - db
|
|
|
- command: ['workspace', 'query-node-root', 'query-node:start:prod']
|
|
|
-
|
|
|
- graphql-server-mnt:
|
|
|
image: node:14
|
|
|
+ container_name: graphql-server
|
|
|
restart: unless-stopped
|
|
|
env_file:
|
|
|
# relative to working directory where docker-compose was run from
|
|
@@ -124,29 +171,8 @@ services:
|
|
|
command: ['yarn', 'workspace', 'query-node-root', 'query-node:start:prod']
|
|
|
|
|
|
processor:
|
|
|
- image: joystream/apps
|
|
|
- restart: unless-stopped
|
|
|
- build:
|
|
|
- context: .
|
|
|
- dockerfile: apps.Dockerfile
|
|
|
- args:
|
|
|
- - WS_PROVIDER_ENDPOINT_URI=${WS_PROVIDER_ENDPOINT_URI}
|
|
|
- env_file:
|
|
|
- # relative to working directory where docker-compose was run from
|
|
|
- - .env
|
|
|
- environment:
|
|
|
- - INDEXER_ENDPOINT_URL=http://hydra-indexer-gateway:${WARTHOG_APP_PORT}/graphql
|
|
|
- - TYPEORM_HOST=${DB_HOST}
|
|
|
- - TYPEORM_DATABASE=${DB_NAME}
|
|
|
- - WS_PROVIDER_ENDPOINT_URI=${WS_PROVIDER_ENDPOINT_URI}
|
|
|
- volumes:
|
|
|
- - ./types/augment/all/defs.json:/joystream/query-node/mappings/lib/generated/types/typedefs.json
|
|
|
- depends_on:
|
|
|
- - hydra-indexer-gateway
|
|
|
- command: ['workspace', 'query-node-root', 'processor:start']
|
|
|
-
|
|
|
- processor-mnt:
|
|
|
image: node:14
|
|
|
+ container_name: processor
|
|
|
restart: unless-stopped
|
|
|
env_file:
|
|
|
# relative to working directory where docker-compose was run from
|
|
@@ -166,6 +192,7 @@ services:
|
|
|
|
|
|
indexer:
|
|
|
image: joystream/hydra-indexer:3.0.0
|
|
|
+ container_name: indexer
|
|
|
restart: unless-stopped
|
|
|
env_file:
|
|
|
# relative to working directory where docker-compose was run from
|
|
@@ -185,6 +212,7 @@ services:
|
|
|
|
|
|
hydra-indexer-gateway:
|
|
|
image: joystream/hydra-indexer-gateway:3.0.0
|
|
|
+ container_name: hydra-indexer-gateway
|
|
|
restart: unless-stopped
|
|
|
env_file:
|
|
|
# relative to working directory where docker-compose was run from
|
|
@@ -208,14 +236,17 @@ services:
|
|
|
|
|
|
redis:
|
|
|
image: redis:6.0-alpine
|
|
|
+ container_name: redis
|
|
|
restart: always
|
|
|
ports:
|
|
|
- '127.0.0.1:6379:6379'
|
|
|
|
|
|
pioneer:
|
|
|
- image: joystream/pioneer
|
|
|
- build:
|
|
|
- context: .
|
|
|
- dockerfile: pioneer.Dockerfile
|
|
|
+ image: nginx
|
|
|
+ container_name: pioneer
|
|
|
+ volumes:
|
|
|
+ - ./pioneer/packages/apps/build:/usr/share/nginx/html
|
|
|
ports:
|
|
|
- - '127.0.0.1:3000:80'
|
|
|
+ - "127.0.0.1:3000:80"
|
|
|
+ environment:
|
|
|
+ - NGINX_PORT=80
|