mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-11-22 17:50:13 +01:00
Added elasticsearch
This commit is contained in:
parent
d39e7ac6d7
commit
231b13103c
@ -7,14 +7,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
backend:
|
backend:
|
||||||
ipv4_address: 172.15.0.15
|
ipv4_address: 172.15.0.15
|
||||||
depends_on:
|
|
||||||
- mongodb
|
|
||||||
environment:
|
environment:
|
||||||
DB_HOSTNAME: mongodb
|
DB_HOSTNAME: ${DB_HOSTNAME}
|
||||||
|
DB_PORT: ${DB_PORT}
|
||||||
mongodb:
|
|
||||||
image: mongo:3.6
|
|
||||||
command: mongod
|
|
||||||
networks:
|
|
||||||
backend:
|
|
||||||
ipv4_address: 172.15.0.11
|
|
||||||
|
7
compose-files/elasticsearch.yml
Normal file
7
compose-files/elasticsearch.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
elasticsearch:
|
||||||
|
image: elasticsearch:5
|
||||||
|
networks:
|
||||||
|
backend:
|
||||||
|
ipv4_address: 172.15.0.11
|
8
compose-files/mongodb.yml
Normal file
8
compose-files/mongodb.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
mongodb:
|
||||||
|
image: mongo:3.6
|
||||||
|
command: mongod
|
||||||
|
networks:
|
||||||
|
backend:
|
||||||
|
ipv4_address: 172.15.0.11
|
@ -36,6 +36,10 @@ export KEEPER_MNEMONIC=''
|
|||||||
export CONFIGURE_ACL="true"
|
export CONFIGURE_ACL="true"
|
||||||
export ACL_CONTRACT_ADDRESS=""
|
export ACL_CONTRACT_ADDRESS=""
|
||||||
|
|
||||||
|
# Default Aquarius Backend to Mongo
|
||||||
|
export DB_HOSTNAME="mongodb"
|
||||||
|
export DB_PORT="27017"
|
||||||
|
|
||||||
# Export User UID and GID
|
# Export User UID and GID
|
||||||
export LOCAL_USER_ID=$(id -u)
|
export LOCAL_USER_ID=$(id -u)
|
||||||
export LOCAL_GROUP_ID=$(id -g)
|
export LOCAL_GROUP_ID=$(id -g)
|
||||||
@ -71,6 +75,7 @@ COMPOSE_FILES=""
|
|||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/network_volumes.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/network_volumes.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pleuston.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/pleuston.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius.yml"
|
||||||
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/mongodb.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/brizo.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/brizo.yml"
|
||||||
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/secret_store.yml"
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/secret_store.yml"
|
||||||
|
|
||||||
@ -113,6 +118,7 @@ while :; do
|
|||||||
;;
|
;;
|
||||||
--no-aquarius)
|
--no-aquarius)
|
||||||
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius.yml/}"
|
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/aquarius.yml/}"
|
||||||
|
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/mongodb.yml/}"
|
||||||
printf $COLOR_Y'Starting without Aquarius...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting without Aquarius...\n\n'$COLOR_RESET
|
||||||
;;
|
;;
|
||||||
--no-secret-store)
|
--no-secret-store)
|
||||||
@ -131,6 +137,16 @@ while :; do
|
|||||||
printf $COLOR_Y'Starting only Secret Store...\n\n'$COLOR_RESET
|
printf $COLOR_Y'Starting only Secret Store...\n\n'$COLOR_RESET
|
||||||
;;
|
;;
|
||||||
#################################################
|
#################################################
|
||||||
|
# Elasticsearch
|
||||||
|
#################################################
|
||||||
|
--elasticsearch)
|
||||||
|
COMPOSE_FILES+=" -f ${COMPOSE_DIR}/elasticsearch.yml"
|
||||||
|
COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/mongodb.yml/}"
|
||||||
|
export DB_HOSTNAME="elasticsearch"
|
||||||
|
export DB_PORT="9200"
|
||||||
|
printf $COLOR_Y'Starting with Elasticsearch...\n\n'$COLOR_RESET
|
||||||
|
;;
|
||||||
|
#################################################
|
||||||
# Contract/Storage switches
|
# Contract/Storage switches
|
||||||
#################################################
|
#################################################
|
||||||
--reuse-ganache-database)
|
--reuse-ganache-database)
|
||||||
|
Loading…
Reference in New Issue
Block a user