Set Up Redis External Connection

Note

Make sure that the version of the external service matches the version specified in the docker-compose.yml file.

  1. Set up the following parameter in the Redis configuration file:

    appendonly yes
    
  2. In the docker-compose.yml file, comment or delete the section with the service (auth_cache) you want to replace with an external one. Comment or delete all dependencies on other containers (all instances of the service in the section depends_on), and the volume of the service (auth-cache-volume) in the volumes list.

  3. In the .env file, specify the connection data for the external database, where external-server is the IP address or the DNS name of the server with Redis installed (protocol and port are not required).

    AUTH_CACHE_CONNECTION_STRING=external-server
    ```
    
  4. Reinstall TestGear:

    docker-compose -f docker-compose.yml --project-name prod up --detach --timeout 120 --remove-orphans