quorum-dev-quickstart icon indicating copy to clipboard operation
quorum-dev-quickstart copied to clipboard

fix: Add Redis dependency to resolve missing service error

Open wantaekchoi opened this issue 1 year ago • 1 comments

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:

  1. 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.
  2. 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.
  3. Chainlens Web Updates:

    • Added WS_API_URL environment variable in x-chainlensweb-ref.
  4. 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.

wantaekchoi avatar Jul 04 '24 07:07 wantaekchoi

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 04 '24 07:07 CLAassistant