quorum-dev-quickstart
quorum-dev-quickstart copied to clipboard
fix: Add Redis dependency to resolve missing service error
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:
- Added a new service definition for Redis under
x-chainlensredis-ref. - Defined the Redis container using the
redisimage with the container namechainlensredis.
- Added a new service definition for Redis under
-
Chainlens API Updates:
- Included environment variables
REDIS_HOSTandREDIS_PORTinx-chainlensapi-reffor Redis connectivity. - Updated the
depends_onsection inx-chainlensapi-refto includechainlensredis.
- Included environment variables
-
Chainlens Web Updates:
- Added
WS_API_URLenvironment variable inx-chainlensweb-ref.
- Added
-
Service Configuration:
- Added
chainlensredisservice to the mainservicessection with an assigned IP address in thequorum-dev-quickstartnetwork.
- Added
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-composesetup runs successfully with the new Redis service. - Ensured that the Chainlens API can connect to Redis and operate without errors.