In short, I’m trying to move bitwarden_rs’s container configuration from the docker-compose file to Traefik’s dynamic config file. I’m having problems “converting” these two labels.
The two labels in question, from docker-compose.yml:
- traefik.http.services.bitwarden-ui.loadbalancer.server.port=80 - traefik.http.services.bitwarden-websocket.loadbalancer.server.port=3012
…And the current “dynamic.yml” (traefik’s dynamic config) file:
services: bitwarden-ui: loadBalancer: servers: - url: "http://0.0.0.0:80" bitwarden-websocket: loadBalancer: servers: - url: "http://0.0.0.0:3012"
Basically I’m not sure what the loadBalancers are for, but I’ve seen that a service must be created to run bitwarden_rs container otherwise Traefik will complain. So I just tried to figure it out but I’m not sure what to put in the “url” section. When using just the labels, the services created point to 172.18.0.2:80 and 172.18.0.2:3012 but I don’t know what that is, apparently it’s Docker but is that IP always gonna stay the same? The labels only had ports specified, but here I also have to tell the IP and I’m not sure what that should be. Any help would be appreciated.