Having hard-coded hostnames puts constraints on the deployment environment (including on other things deployed to the same environment). In this case, this project is claiming (i.e. reserving) the hostname redis for the Redis instance it uses.
I propose allowing the host name to be configurable via an environment variable.
The hostname,
redis
, is hard-coded in the source code. For example:https://github.com/microbiomedata/nmdc-server/blob/5ad07cc6dfe62bce258b44a6a64f05e8ac2e44e7/Dockerfile.worker#L14
Having hard-coded hostnames puts constraints on the deployment environment (including on other things deployed to the same environment). In this case, this project is claiming (i.e. reserving) the hostname
redis
for the Redis instance it uses.I propose allowing the host name to be configurable via an environment variable.