0
I'm trying to run Traefik as a reverse proxy for some apps in localhost.
In the configuration file, I configured 3 routers and 2 services. The goal is to proxify two applications I have on localhost 8080 and localhost 3000 (dev.test.fr is equivalent to localhost)
The configuration :
api:
dashboard: true
insecure: true
entryPoints:
http:
address: ':80'
traefik:
address: ':8081'
http:
routers:
myapi:
rule: Host(`dev.test.fr`) && PathPrefix(`/api`)
service: service-api
traefik:
rule: Host(`dev.test.com`)
service: api@internal
myfront:
rule: Host(`dev.test.fr`)
service: service-front
services:
service-api:
loadBalancer:
servers:
- url: 'http://localhost:8080/'
service-front:
loadBalancer:
servers:
- url: 'http://localhost:3000/'
log:
level: DEBUG
accessLog: {}
However if I go on the traefik dashboard, I don't see any of my router or service (except the internal api of traefik)
I'm not an expert on traefik so I probably miss something obvious in this configuration file.
I run traefik directly with the command line :
./traefik in the same folder