Microbin's port from docker's internal network wasn't being published to the host at all, even though "${MICROBIN_PORT}:8081" was set clearly in compose file. Then I noticed the MICROBIN_PORT wasn't listed under environment in compose file, so it was just trying to forward an undefined/garbage port to the host. And not just that, I believe a few other variables might be missing as well.
Why do you list each variables separately like that though? It would be better and easier if you just link the .env file in the docker compose file, like this
Microbin's port from docker's internal network wasn't being published to the host at all, even though
"${MICROBIN_PORT}:8081"
was set clearly in compose file. Then I noticed the MICROBIN_PORT wasn't listed underenvironment
in compose file, so it was just trying to forward an undefined/garbage port to the host. And not just that, I believe a few other variables might be missing as well.Why do you list each variables separately like that though? It would be better and easier if you just link the .env file in the docker compose file, like this
Note that when using the env file like this, we will no longer need the
export
keyword in the env file.