From 9d607edc6e68ff9368c210dda555e4abc5296c80 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Mon, 6 Dec 2021 02:25:45 -0800 Subject: [PATCH] add redis --- README.md | 2 ++ compose-files/redis.yml | 15 +++++++++++++++ start_ocean.sh | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 compose-files/redis.yml diff --git a/README.md b/README.md index ea2d703..098a49b 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,8 @@ The default versions are always a combination of component versions which are co | Graphipfs | | ipfs/go-ipfs:v0.4.23 | 172.15.0.16 | 5001 -> 5001 | | Graphpgsql | | postgres | 172.15.0.7 | 5432 -> 5432 | | Dashboard | | portainer/portainer | 172.15.0.25 | 9100 -> 9000 | +| Redis | | bitnami/redis:latest | 172.15.0.18 | 6379 -> 6379 | + diff --git a/compose-files/redis.yml b/compose-files/redis.yml new file mode 100644 index 0000000..9d09240 --- /dev/null +++ b/compose-files/redis.yml @@ -0,0 +1,15 @@ +version: '3' +services: + redis: + image: bitnami/redis:latest + ports: + - 6379:6379 + networks: + backend: + ipv4_address: 172.15.0.18 + environment: + ALLOW_EMPTY_PASSWORD: "yes" + volumes: + - redis1vol:/bitnami/redis/data +volumes: + redis1vol: diff --git a/start_ocean.sh b/start_ocean.sh index 5e0571c..089ec2f 100755 --- a/start_ocean.sh +++ b/start_ocean.sh @@ -162,6 +162,7 @@ COMPOSE_FILES+=" -f ${COMPOSE_DIR}/dashboard.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/aquarius.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/elasticsearch.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/provider.yml" +COMPOSE_FILES+=" -f ${COMPOSE_DIR}/redis.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/ganache.yml" COMPOSE_FILES+=" -f ${COMPOSE_DIR}/ocean_contracts.yml" @@ -187,6 +188,7 @@ while :; do ################################################# --no-provider) COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/provider.yml/}" + COMPOSE_FILES="${COMPOSE_FILES/ -f ${COMPOSE_DIR}\/redis.yml/}" printf $COLOR_Y'Starting without Provider...\n\n'$COLOR_RESET ;; --with-provider2)