mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-11-22 01:37:01 +01:00
add 2nd provider
This commit is contained in:
parent
7f91c12fef
commit
ff7f1c2fce
@ -13,11 +13,7 @@ services:
|
||||
ARTIFACTS_PATH: "/ocean-contracts/artifacts"
|
||||
NETWORK_URL: ${NETWORK_RPC_URL}
|
||||
PARITY_URL: ${NETWORK_RPC_URL}
|
||||
PROVIDER_KEY: ${PROVIDER_PRIVATE_KEY}
|
||||
PROVIDER_PRIVATE_KEY: ${PROVIDER_PRIVATE_KEY}
|
||||
PROVIDER_ADDRESS: ${PROVIDER_ADDRESS}
|
||||
PROVIDER_PASSWORD: ${PROVIDER_PASSWORD}
|
||||
PROVIDER_ENCRYPTED_KEY: ${PROVIDER_ENCRYPTED_KEY}
|
||||
LOG_LEVEL: ${PROVIDER_LOG_LEVEL}
|
||||
OCEAN_PROVIDER_URL: 'http://0.0.0.0:8030'
|
||||
OCEAN_PROVIDER_WORKERS: ${PROVIDER_WORKERS}
|
||||
|
25
compose-files/provider2.yml
Normal file
25
compose-files/provider2.yml
Normal file
@ -0,0 +1,25 @@
|
||||
version: '3'
|
||||
services:
|
||||
provider2:
|
||||
image: oceanprotocol/provider-py:${PROVIDER_VERSION:-latest}
|
||||
ports:
|
||||
- 8031:8030
|
||||
networks:
|
||||
backend:
|
||||
ipv4_address: 172.15.0.7
|
||||
depends_on:
|
||||
- ocean-contracts
|
||||
environment:
|
||||
ARTIFACTS_PATH: "/ocean-contracts/artifacts"
|
||||
NETWORK_URL: ${NETWORK_RPC_URL}
|
||||
PARITY_URL: ${NETWORK_RPC_URL}
|
||||
PROVIDER_PRIVATE_KEY: ${PROVIDER2_PRIVATE_KEY}
|
||||
LOG_LEVEL: ${PROVIDER_LOG_LEVEL}
|
||||
OCEAN_PROVIDER_URL: 'http://0.0.0.0:8030'
|
||||
OCEAN_PROVIDER_WORKERS: ${PROVIDER_WORKERS}
|
||||
IPFS_GATEWAY: ${PROVIDER_IPFS_GATEWAY}
|
||||
OCEAN_PROVIDER_TIMEOUT: '9000'
|
||||
OPERATOR_SERVICE_URL: ${OPERATOR_SERVICE_URL}
|
||||
AQUARIUS_URL: ${AQUARIUS_URL:-http://172.15.0.5:5000}
|
||||
volumes:
|
||||
- ${OCEAN_ARTIFACTS_FOLDER}:/ocean-contracts/artifacts/
|
@ -75,10 +75,11 @@ CHECK_ELASTIC_VM_COUNT=true
|
||||
|
||||
|
||||
#Provider
|
||||
export PROVIDER_LOG_LEVEL=INFO
|
||||
export PROVIDER_LOG_LEVEL=${PROVIDER_LOG_LEVEL:-INFO}
|
||||
export PROVIDER_WORKERS=1
|
||||
export PROVIDER_IPFS_GATEWAY=https://ipfs.oceanprotocol.com
|
||||
export PROVIDER_PRIVATE_KEY=0xfd5c1ccea015b6d663618850824154a3b3fb2882c46cefb05b9a93fea8c3d215
|
||||
export PROVIDER2_PRIVATE_KEY=0xc852b55146fd168ec3d392bbd70988c18463efa460a395dede376453aca1180e
|
||||
|
||||
if [ ${IP} = "localhost" ]; then
|
||||
export AQUARIUS_URI=http://172.15.0.5:5000
|
||||
@ -186,6 +187,10 @@ while :; do
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/provider.yml/}"
|
||||
printf $COLOR_Y'Starting without Provider...\n\n'$COLOR_RESET
|
||||
;;
|
||||
--with-provider2)
|
||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/provider2.yml"
|
||||
printf $COLOR_Y'Starting with a 2nd Provider...\n\n'$COLOR_RESET
|
||||
;;
|
||||
--no-ganache)
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ganache.yml/}"
|
||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ocean_contracts.yml/}"
|
||||
|
Loading…
Reference in New Issue
Block a user