redisinsight icon indicating copy to clipboard operation
redisinsight copied to clipboard

Is it possible to add connections by environment variables ?

Open ygxxii opened this issue 2 years ago • 4 comments

I am using Docker Compose to setup Redis + RedisInsight , to build a simple test space.

Is it possible to add database connections in RedisInsight by environment variables in compose.yml ?

ygxxii avatar Oct 11 '23 06:10 ygxxii

In the base version this docker image was built from it was not possible. But their code velocity in the last month or so is impressive, so there might be a feature which enables this. I'll check and see what's going on.

If possible, I'll try to mangle something via CURL and env vars in the entrypoint.

seebeen avatar Oct 29 '23 13:10 seebeen

Any updates about that?

eyalruby avatar Nov 07 '23 09:11 eyalruby

Working on it. As I've said. It needs to be done via entrypoint.

seebeen avatar Nov 07 '23 21:11 seebeen

As a workaround, you can just add new connections issuing a POST request via curl:

curl -s -X POST -H "Content-Type: application/json" -d '{"name":"api-redis","host":"api-redis","port":6379}' localhost:5540/api/databases/

Ensure you replace the host and port with the correct ones of your redis instance.

SantiagoSchez avatar Mar 20 '24 09:03 SantiagoSchez