|
@@ -30,20 +30,19 @@ services:
|
|
|
- /data
|
|
|
- /keystore
|
|
|
ports:
|
|
|
- - '127.0.0.1:3333:3333'
|
|
|
+ - '127.0.0.1:3333:${COLOSSUS_PORT}'
|
|
|
entrypoint: ['/bin/sh', '-c']
|
|
|
command:
|
|
|
- |
|
|
|
yarn storage-node dev:init --apiUrl ${WS_PROVIDER_ENDPOINT_URI}
|
|
|
- yarn storage-node server --queryNodeHost $${QUERY_NODE_HOST} --port $${COLOSSUS_PORT} \
|
|
|
+ yarn storage-node server --queryNodeHost $${QUERY_NODE_HOST} --port ${COLOSSUS_PORT} \
|
|
|
--uploads /data --worker $${WORKER_ID} --apiUrl ${WS_PROVIDER_ENDPOINT_URI} --sync --syncInterval=1 \
|
|
|
--keyFile=${ACCOUNT_KEYFILE} --elasticSearchHost=${ELASTIC_SEARCH_HOST}
|
|
|
env_file:
|
|
|
# relative to working directory where docker-compose was run from
|
|
|
- .env
|
|
|
environment:
|
|
|
- - COLOSSUS_PORT=3333
|
|
|
- - QUERY_NODE_HOST=graphql-server:4002
|
|
|
+ - QUERY_NODE_HOST=${GRAPHQL_SERVER_HOST}:${GRAPHQL_SERVER_PORT}
|
|
|
- WORKER_ID=0
|
|
|
- ACCOUNT_URI=//Alice
|
|
|
|
|
@@ -63,7 +62,7 @@ services:
|
|
|
# Node configuration can be overriden via env, for exampe:
|
|
|
environment:
|
|
|
# JOYSTREAM_DISTRIBUTOR__ID: node-id
|
|
|
- JOYSTREAM_DISTRIBUTOR__ENDPOINTS__QUERY_NODE: http://graphql-server:4002/graphql
|
|
|
+ JOYSTREAM_DISTRIBUTOR__ENDPOINTS__QUERY_NODE: http://${GRAPHQL_SERVER_HOST}:${GRAPHQL_SERVER_PORT}/graphql
|
|
|
# JOYSTREAM_DISTRIBUTOR__ENDPOINTS__SUBSTRATE_NODE: sn-endpoint
|
|
|
# JOYSTREAM_DISTRIBUTOR__ENDPOINTS__ELASTIC_SEARCH: es-endpoint
|
|
|
# JOYSTREAM_DISTRIBUTOR__DIRECTORIES__DATA: data-dir
|