oblakstudio / redisinsight

RedisInsight v2 - Better GUI for Redis (amd64/arm64)
https://hub.docker.com/r/oblakstudio/redisinsight
Other
65 stars 7 forks source link

Is it possible to add connections by environment variables ? #7

Open ygxxii opened 1 year ago

ygxxii commented 1 year ago

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 ?

seebeen commented 12 months ago

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.

eyalruby commented 11 months ago

Any updates about that?

seebeen commented 11 months ago

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

SantiagoSchez commented 7 months ago

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.