Ravinou / borgwarehouse

A fast and modern WebUI for a BorgBackup's central repository server.
https://borgwarehouse.com
GNU Affero General Public License v3.0
314 stars 21 forks source link

Traefik configuration #225

Open RosaEinhorn opened 1 month ago

RosaEinhorn commented 1 month ago

Hello,

I am using borgwarehouse for quite some time now and I am very happy with it. It looks nice and is super reliable. I have been using Caddy as a reverse proxy with little changes to the docker-compose.yaml:

` ports:

- "${WEB_SERVER_PORT:?WEB_SERVER_PORT variable missing}:3000"

  - "${SSH_SERVER_PORT:?SSH_SERVER_PORT variable missing}:22"`

I commented out the GUI port and reverse proxied to borgwarehouse:3000.

This configuration works as expected, but I am now migrating all services to Traefik. Unfortunately, I cannot make this run, as I cannot access the borgwarehouse GUI via my proxy network. borgwarehouse:3000 or <docker-network-ip>:3000 are not reachable. It does not look like Traefik issue to me, as none of the containers in the proxy network can reach borgwarehouse.

Has anyone setup borgwarehouse with Traefik as a reverse proxy successfully? Thanks a lot in advance. :)

RosaEinhorn commented 1 month ago

My proxy (docker) network has IPv6 enabled. The borgwarehouse log shows that the port is bound to the IPv6 and not the IPv4. However the docker dns lookup point to the IPv4. Is it possible to force borgwarehouse to bind the port to IPv4?

Ravinou commented 1 month ago

Thanks for the first words of your first comment. It's very encouraging for me :)

I imagine it's possible to do this by modifying the docker configuration. I don't know if I can do anything at the application level for that? I use ipv4 on a server and it works.