Hello,
I'm was using Traefik for ~1year in a single instance configuration using docker running all the services.
Lately i moved to Proxmox and want to separate my 0-24 used services like Traefik,SearXNG,UptimeKuma,ddclient etc in 1 LXC aka 1 "computer" and all my other.
Traefik works here absolutely fine all services accessible from WAN so far.
HOWEVER; i have several other services like 3-4 web servers, experimental or temporary services to run and i want to have those separated from the 1 LXC in other containers, acting like other servers with different LAN IP addresses.
I read the documentation over and over but didnt managed to get it to work.
My setup is lets say:
192.168.0.204 - VM running dockerised Traefik with the following configuration .yml files:
mato@proxy-services:~/util/traefik/config$ wget http://192.168.0.180:80
--2023-11-28 18:29:07-- http://192.168.0.180/
Connecting to 192.168.0.180:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://192.168.0.180/wp-admin/install.php [following]
--2023-11-28 18:29:07-- http://192.168.0.180/wp-admin/install.php
Reusing existing connection to 192.168.0.180:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
index.html: Permission denied
Cannot write to 'index.html' (Permission denied).
So my problem is how to "teach" Traefik to route traffic to another local ip when it gets the request?
Traefik host is located on 192.168.0.204
Other VM with the required service is at 192.168.0.180:80
Host domain is: "false.webredirect.org" = 192.168.0.204
Other service: "example.false.webredirect.org" = 192.168.0.180
I'am gratefull you spent time to read the struggle of a beginner and i hope one of you can provide me with crucial guidance! TY
Traefik http routers and services are dynamic config, they should go into a separate config file and should be loaded with providers.file in static config (traefik.yml).
Also note that you can’t mix static config in traefik.yml and in command, decide for one.
Ty for your answer!
So traefik.yml is the "static" configuration.
and lets say a file called "other.yml" is the dynamic what placed lets say next to the traefik.yml contains only:
Traefik dashboard show at the bottom in the category of Providers:
Docker
file
Concerning log message:
traefik | time="2023-11-28T22:16:21Z" level=error msg="Cannot start the provider *file.Provider: error adding file watcher: no such file or directory"
traefik | time="2023-11-28T22:27:19Z" level=error msg="Error while building configuration (for the first time): error reading configuration file: ./dynamic_conf.yml - open ./dynamic_conf.yml: no such file or directory" providerName=file
Impossible, i tryed everything.
the full path for the dynamic configuration is:
/home/mato/util/traefik/config/dynamic_conf.yml
I tryed everything: ./dynamic_conf.yml /home/mato/util/traefik/config/dynamic_conf.yml dynamic_conf.yml
By directory: