1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-11-25 11:28:45 +01:00

add ganache

This commit is contained in:
Alex 2020-06-28 15:15:53 +03:00
parent acc399f26d
commit b6df4459ff
6 changed files with 22 additions and 7 deletions

View File

@ -6,7 +6,7 @@ services:
- 5000:5000 - 5000:5000
networks: networks:
backend: backend:
ipv4_address: 172.15.0.15 ipv4_address: 172.15.0.5
environment: environment:
DB_MODULE: ${DB_MODULE} DB_MODULE: ${DB_MODULE}
DB_HOSTNAME: ${DB_HOSTNAME} DB_HOSTNAME: ${DB_HOSTNAME}

View File

@ -4,7 +4,7 @@ services:
image: elasticsearch:6.8.3 image: elasticsearch:6.8.3
networks: networks:
backend: backend:
ipv4_address: 172.15.0.11 ipv4_address: 172.15.0.6
environment: environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m" ES_JAVA_OPTS: "-Xms512m -Xmx512m"
MAX_MAP_COUNT: "64000" MAX_MAP_COUNT: "64000"
@ -16,7 +16,7 @@ services:
- 5000:5000 - 5000:5000
networks: networks:
backend: backend:
ipv4_address: 172.15.0.15 ipv4_address: 172.15.0.5
depends_on: depends_on:
- elasticsearch - elasticsearch
environment: environment:

View File

@ -5,14 +5,14 @@ services:
command: mongod command: mongod
networks: networks:
backend: backend:
ipv4_address: 172.15.0.11 ipv4_address: 172.15.0.7
aquarius: aquarius:
image: oceanprotocol/aquarius:${AQUARIUS_VERSION:-stable} image: oceanprotocol/aquarius:${AQUARIUS_VERSION:-stable}
ports: ports:
- 5000:5000 - 5000:5000
networks: networks:
backend: backend:
ipv4_address: 172.15.0.15 ipv4_address: 172.15.0.5
depends_on: depends_on:
- mongodb - mongodb
environment: environment:

10
compose-files/ganache.yml Normal file
View File

@ -0,0 +1,10 @@
version: '3'
services:
ganache:
image: trufflesuite/ganache-cli:latest
ports:
- 8545:8545
networks:
backend:
ipv4_address: 172.15.0.3

View File

@ -6,7 +6,7 @@ services:
- 8030:8030 - 8030:8030
networks: networks:
backend: backend:
ipv4_address: 172.15.0.17 ipv4_address: 172.15.0.4
environment: environment:
NETWORK_URL: ${KEEPER_RPC_URL} NETWORK_URL: ${KEEPER_RPC_URL}
PARITY_URL: ${KEEPER_RPC_URL} PARITY_URL: ${KEEPER_RPC_URL}

View File

@ -167,6 +167,7 @@ COMPOSE_FILES+=" -f ${COMPOSE_DIR}/network_volumes.yml"
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/dashboard.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/dashboard.yml"
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius_elasticsearch.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius_elasticsearch.yml"
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/provider.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/provider.yml"
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/ganache.yml"
DOCKER_COMPOSE_EXTRA_OPTS="${DOCKER_COMPOSE_EXTRA_OPTS:-}" DOCKER_COMPOSE_EXTRA_OPTS="${DOCKER_COMPOSE_EXTRA_OPTS:-}"
while :; do while :; do
@ -196,7 +197,11 @@ while :; do
################################################# #################################################
--no-provider) --no-provider)
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/provider.yml/}" COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/provider.yml/}"
printf $COLOR_Y'Starting without Brizo...\n\n'$COLOR_RESET printf $COLOR_Y'Starting without Provider...\n\n'$COLOR_RESET
;;
--no-ganache)
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/ganache.yml/}"
printf $COLOR_Y'Starting without Ganache...\n\n'$COLOR_RESET
;; ;;
--no-aquarius) --no-aquarius)
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius_elasticsearch.yml/}" COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius_elasticsearch.yml/}"