rusticsearch
rusticsearch copied to clipboard
Customize address and port
Could the address and the port be customized with a CLI argument or an environment variable?
I would be delighted to run rusticsearch in a Docker container. The --publish
option for docker run
could allow me to publish the 9200 port to the host if rusticsearch is listening to 0.0.0.0 inside the container. However, rusticsearch always listens to 127.0.0.1 by default, and as far as I known, there is no way to publish it in this case.
I think you can also consider listening to 0.0.0.0 by default instead of 127.0.0.1, but I’m not a network expert. Of course, it’s really easy to do and solves my problem, but a generic way to change the address is probably better.
(And thanks for this interesting project :+1:)
Yep, this is definitely something that needs to be looked at fairly soon. I've been holding off a bit on configuration options so far as I'd like to think about configuration as a whole along with configuration files and environment variables and they'll all fit together which could have an impact on the final syntax.