I am currently running a few docker containers on my single ubuntu 18.04 system
all is fine and dandy but i i am bored and want to do more so i read up on reverse proxies
I installed bitwarden using this
and bitwarden runs 12 containers for different things one of which is
I was going to install traefik docker container and when i went to do that i got an error saying i cant because bitwarden-nginx container is already using port 80
My question is
can i modify the bitwarden/nginx:1.32.0 docker container and use that as my reverse proxy for everything
Do i get rid of bitwarden and setup my own reverse proxy using nginx or traefik and then figure out how to add bitwarden without the redundant nginx after
Do i setup the reverse proxy on another system?
Thanks in Advance
3 thoughts on “Cant install/setup a reverse proxy because my bitwarden docker container is already running nginx”
You docker container for Bitwarden is exposing the internal ports (8080/8443) as ports 80/443 on the host.
However you’re starting Bitwarden’s Docker containers, you need to configure the published ports to something different then you point your reverse proxy at those internal ports.
I use https://github.com/dani-garcia/bitwarden_rs
It is just one container and I run nginx on the host..if you want, I can post docker command and nginx config!
You would want to have all of your services (including bitwarden) running on an internal docker network that traefik is also connected to. The ports from these containers are not exposed outside of this internal network.
Then, you expose traefik ‘publicly’ on the host’s port 80, and it talks to all of the containers on the private network (including bitwarden on port 80).