Automatically detect port from env
Opened this issue · 1 comments
5HT2 commented
Currently, you must edit both config/.env
and docker-compose.yml
to change the port of a Docker container. This is confusing to the user (and to me, when I forget about it).
Grabbing the port from config/.env
would be ideal.
Currently we have HB_ADDR=0.0.0.0:6060
, which is part of what we need. We could make the 6060
part a HB_PORT
variable in config/.env
if Docker supports expanding env vars.
Testing it needed to ensure if this is possible.