In the future we'll have a Docker image that bundles services like tools-redis locally in the Kubernetes environment for each tool - which would naturally work the same way when testing locally - outside Toolforge and without Kubernetes.
But until then, it'd be good to be able to adopt services like Redis in a tool while still being able to easily run them locally (without having to set up a hostname called "tools-redis" on my local machine etc.)
Perhaps we can expose service domain names like tools-redis via an environment variable? That way, I can have the tool automatically detect that the variable is set and to what hostname and use it.
When running locally I can either have it skip it if not set, or point it to my own Redis install.