New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose: bitwarden/nginx running behing other reverse proxy should bind to localhost #325
Comments
Ups, didn't red your post, opened an issue like this a few minutes ago. Had the same problem, thanks for the solutions. But now I've the same question - haha |
Thanks for the reply! Of cause I cannot answer this question, but I guess nobody will just run a single bitwarden on a machine, ...at least not without a reverse proxy. |
@fabwu yes, I guess this looks like the right place to fix it. |
I deploy with no port bindings, and my reverse proxy communicates with the BW nginx container via an overlay network, so everything is contained and controlled properly. (I use Traefik for RP, and Docker Swarm for orchestration). |
There are so many different setup it's impossible to make everybody happy. It's just that I don't like the way the port binding is handled by default. I'll provide a PR with the fix and for other setups one can override |
310e6bc will add the ability to specify whatever port binding you want within the new It will be available in the next version. Example:
|
Currently the docker-compose port binding with a custom port looks like:
This binds to a public port accessible from anywhere. Since I'm running this behind a reverse proxy, as configured during the setup, I didn't not expect this as it circumvents my firewall rules!
I changed my docker-compose.yml to bind the port to localhost instead:
Am I unaware of a deeper concept here, or should this be fixed in the setup scripts?
The text was updated successfully, but these errors were encountered: