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.
Set up the following parameter in the Redis configuration file:
appendonly yes
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 sectiondepends_on
), and the volume of the service (auth-cache-volume
) in thevolumes
list.In the
.env
file, specify the connection data for the external database, whereexternal-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 ```
Reinstall TestGear:
docker-compose -f docker-compose.yml --project-name prod up --detach --timeout 120 --remove-orphans