Cant install/setup a reverse proxy because my bitwarden docker container is already running nginx

I am currently running a few docker containers on my single ubuntu 18.04 system

emby

airsonic

bitwarden

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

[https://help.bitwarden.com/article/install-on-premise/#install-bitwarden](https://help.bitwarden.com/article/install-on-premise/#install-bitwarden)

and bitwarden runs 12 containers for different things one of which is

bitwarden/nginx:1.32.0

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

OR

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

OR

Do i setup the reverse proxy on another system?

OR

Anything else?

Thanks in Advance

https://preview.redd.it/uzy60zj70ud41.png?width=1474&format=png&auto=webp&s=0a2b22c1b6442a3dcd24fe9d1d8140aff25d8cd7

3 thoughts on “Cant install/setup a reverse proxy because my bitwarden docker container is already running nginx”

  1. 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.

    Reply
  2. 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).

    Reply

Leave a Comment