Questions tagged [traefik]

Træfɪk is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease

Træfik (pronounced like traffic) is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease. It supports several backends (Docker, Swarm mode, Kubernetes, Marathon, Consul, Etcd, Rancher, Amazon ECS, and a lot more) to manage its configuration automatically and dynamically.

Useful links

2251 questions
15
votes
2 answers

How to connect to Traefik TCP Services with TLS configuration enabled?

I am trying to configure Traefik so that I would have access to services via domain names, and that I would not have to set different ports. For example, two MongoDB services, both on the default port, but in different domains, example.localhost and…
Gander
  • 1,854
  • 1
  • 23
  • 30
15
votes
2 answers

Traefik version 2 only shows 404 or no website at all

I try to set up Traefik in version 2 but I only get "404 Page not found" or DNS_PROBE_FINISHED_NXDOMAIN errors in my browser. When I check the API endpoints for routers I can see that my two containers are enabled in Traefik and that the rules are…
Rinma
  • 474
  • 2
  • 5
  • 15
15
votes
1 answer

Traefik,multiple frontend rules to one docker container

I did search the manual but really couldn't make it very clear, even using the keywords to google that. I need to proxy the /_ to the API container, some rule like that www.mydomain.com/_ => API container There is already a specified domain point to…
wanfujinan
  • 185
  • 1
  • 1
  • 8
15
votes
2 answers

How to rewrite paths with Traefik when using path prefix rules?

My Traefik config for WordPress contains the following docker-labels: - "traefik.backend=wordpress" - "traefik.docker.network=web" - "traefik.frontend.rule=Host:MyHostName.net;PathPrefix:/blog" - "traefik.enable=true" - "traefik.port=80" Now…
eventhorizon
  • 2,977
  • 8
  • 33
  • 57
14
votes
3 answers

Is it possible to use Traefik to proxy PostgreSQL over SSL?

Motivations I am a running into an issue when trying to proxy PostgreSQL with Traefik over SSL using Let's Encrypt. I did some research but it is not well documented and I would like to confirm my observations and leave a record to everyone who…
jlandercy
  • 7,183
  • 1
  • 39
  • 57
14
votes
1 answer

Traefik 2 docker not showing client real ip

I have traefik running in docker (on a windows host). The problem I have is that the X-Real-IP header alawys shows the docker network gateway ip instead of the real client ip. I'm not sure what I'm doing wrong, I know traefik in host network mode…
Froghut
  • 327
  • 1
  • 3
  • 9
14
votes
3 answers

Where are Traefik logs?

Do you happen to know where the Traefik logs are located? I read the documentation on Traefik and it says it will output to stdout but when I start the docker container with docker-compose up -d it doesn't show anything in stdout after I try the…
Ray Y
  • 1,261
  • 3
  • 16
  • 24
14
votes
1 answer

Self-hosted Gitlab registry: Connection refused for localhost:5000

I'm using traefik as a reverse proxy (and for management for the letsencrypt certificates) and I'm running a self hosted gitlab instance. GitLab image is a monolithic with all the services into it, both of the services (Registry and Git) need to be…
user3142695
  • 15,844
  • 47
  • 176
  • 332
14
votes
3 answers

Routing to Different SQL Server Instances Running through Docker on Default Port

I can use Traefik for web sites since they use headers when they are connecting. But I want to have multiple different instances of SQL Server running through docker which will be externally available (outside the docker host, potentially outside…
Matt Vukomanovic
  • 1,392
  • 1
  • 15
  • 23
14
votes
10 answers

Traefik Bad Gateway

I've got some strange issue. I have following setup: one docker-host running traefik as LB serving multiple sites. sites are most php/apache. HTTPS is managed by traefik. Each site is started using a docker-compose YAML containing the…
x4k3p
  • 1,598
  • 2
  • 22
  • 42
14
votes
2 answers

Define host and path frontend rule for Traefik

I am trying to use Traefik to deploy proxy multiple applications in my Docker Swarm mode cluster. I have got it so that it proxies a named Host but I want it to proxy on a named Host and Path, but I cannot work out the labels I need to use. This is…
Russell Seymour
  • 1,333
  • 1
  • 16
  • 35
13
votes
1 answer

How do I reference a self-signed SSL certificates for traefik v2 in a docker-compose file?

There is very limited documentation for referencing self-signed certificates for Træfik v2 in the docker-compose YAML file. Here is how you can do it for Let's…
uberrebu
  • 3,597
  • 9
  • 38
  • 73
13
votes
4 answers

Is there a way to not use GKE's standard load balancer?

I'm trying to use Kubernetes to make configurations and deployments explicitly defined and I also like Kubernetes' pod scheduling mechanisms. There are (for now) just 2 apps running on 2 replicas on 3 nodes. But Google's Kubernetes Engine's load…
interlude
  • 843
  • 8
  • 29
13
votes
2 answers

Routing paths with Traefik

Currently I'm trying set up a loadbalancer/reverse proxy with Traefik for some docker containers. I'm having trouble with configuring Treafik to make my apps available using a some prefix paths. I'm able to get a basic Traefik configuration running…
Koningh
  • 628
  • 2
  • 8
  • 22
12
votes
4 answers

Kubernetes ingress rules: How to use wildcard and specific subdomain together

I want Ingress to redirect a specific subdomain to one backend and all others to other backend. Basically, I want to define a rule something like the following: If subdomain is foo.bar.com then go to s1, for all other subdomains go to s2 When I…
fyelci
  • 1,399
  • 2
  • 16
  • 27