The Quorum Developer Quickstart utility can be used to rapidly generate local Quorum blockchain networks for development and demo purposes using Besu and GoQuorum
Apache License 2.0
135
stars
101
forks
source link
fix: Add Redis dependency to resolve missing service error #290
This pull request addresses the issue of missing Redis dependency in the docker-compose.yml file, which was causing errors. The following changes have been made:
Redis Service Addition:
Added a new service definition for Redis under x-chainlensredis-ref.
Defined the Redis container using the redis image with the container name chainlensredis.
Chainlens API Updates:
Included environment variables REDIS_HOST and REDIS_PORT in x-chainlensapi-ref for Redis connectivity.
Updated the depends_on section in x-chainlensapi-ref to include chainlensredis.
Chainlens Web Updates:
Added WS_API_URL environment variable in x-chainlensweb-ref.
Service Configuration:
Added chainlensredis service to the main services section with an assigned IP address in the quorum-dev-quickstart network.
Motivation
This fix ensures that the Chainlens API functions correctly by resolving the error caused by the missing Redis service.
Testing
Verified that the docker-compose setup runs successfully with the new Redis service.
Ensured that the Chainlens API can connect to Redis and operate without errors.
Overview
This pull request addresses the issue of missing Redis dependency in the
docker-compose.yml
file, which was causing errors. The following changes have been made:Redis Service Addition:
x-chainlensredis-ref
.redis
image with the container namechainlensredis
.Chainlens API Updates:
REDIS_HOST
andREDIS_PORT
inx-chainlensapi-ref
for Redis connectivity.depends_on
section inx-chainlensapi-ref
to includechainlensredis
.Chainlens Web Updates:
WS_API_URL
environment variable inx-chainlensweb-ref
.Service Configuration:
chainlensredis
service to the mainservices
section with an assigned IP address in thequorum-dev-quickstart
network.Motivation
This fix ensures that the Chainlens API functions correctly by resolving the error caused by the missing Redis service.
Testing
docker-compose
setup runs successfully with the new Redis service.