Is it possible to use Treafik, to reverse proxy to local network web services

I have used Treafik between two websites using docker in the past, however, I am trying to use a single public ip address, to serve two different servers. Basically go from my isp public address to jellyfin.domain @ 192.168.50.x:8096 or esxi.domain @ 192.168.50.xx:8006. Both have an assigned sub-domain (jellyfin.domain or esxi.domain) and are not part of docker. What would be the best way to set this up, i haven't found any examples of this yet

To configure targets manually, you need to use a dynamic config file with routers and services, load it in static config via providers.file.

A bit similar to this simple Traefik external forward example for Docker Swarm, so less the deploy section and without the middleware.

Thank you for your reply! I found an easier way to do it configuring the domain with redirects, and router port forward. Works as intended, just took 18hrs for dns on the domain to update. I will keep this in mind if issues arise later on.

@mikesmith2107 Strictly as a side comment - I have a similar situation with a rather convoluted home network and I prefer greatly keep things as centralized as possible.

This is one of the reasons why I am moving from Caddy to Traefik (ability to proxy TCP traffic among others) and prefer to have one place to configure everything (in addition to things that will auto-configure such as docker containers). This I swhy I prefer to make all redirections to LAN services in Traefik as opposed to managing them elsewhere.

YMMV, I did so many back-and-forth moves between configurations over the last 10 years that I wanted to share my 0.02€

@WpqJ I agree with trying to keep things centralized. I am figuring out how to do this and hopes I can use Treafix along side my proxmox vm server. And with two sites that are not in docker along with 2 sites that are in docker. I know i can portforward ports 80, 443 directly to my router and portforward again to the traefix. I am still figuring out how to proxy the Treafix to another vm on the network with port calls as 2 of the sites require this, while the other 2 will work on port 80 and 443.

I do not have proxmox and used Caddy in the past. I am moving to Traefik.

I have several services in docker, some are HTTP, and some are TCP (e.g. MQTT). The HTTP services are proxified by Traefik (which binds to 80 and 443 to the host) and the TCP ones directly bind to the host (I plan to move these under Traefik because it can proxy TCP as well).

In addition to that I have a few HTTP services on other hosts in the network.

My plan is to have everything dispatched via Traefik (docker services + proxy to the remote IP for the LAN services) and Traefik's 80/443 will be exposed to the Internet (this is what I currently have with Caddy). The idea is that a secure, well-maintained service (Traefik) is exposed, its configuration is centralized (with a lot of defaults applied to docker services that will basically have no labels at all) and the specific configurations of the services will be with the services.

In other words, I want to keep in one place a functionality and its configuration (handling/config of the HTTP traffic with Traefik, handling/config of the service with the service).

In addition to my home lab I also professionally support 24/7/365 my parents (with a SLA of 3 minutes) so I will double proxy some services (once at my Traefik, and one at theirs). This is the punition for having configured their network.

Treafix along side my proxmox vm server

does proxmox handle the HTTP connection of its VMs?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.