Merge pull request #274 from oceanprotocol/feature/with_redis_v3

add redis
This commit is contained in:
Alex Coseru 2021-12-06 10:19:52 +02:00 committed by GitHub
commit c945254899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View File

@ -75,6 +75,7 @@ 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 |
You can override the Docker image tag used for a particular component by setting its associated environment variable before calling `start_ocean.sh`:

15
compose-files/redis.yml Normal file
View File

@ -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:

View File

@ -160,6 +160,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"
@ -185,6 +186,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)