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
6
votes
2 answers

Use traefik middleware globally

i am trying to declare https redirect inside the traefik.yml file. For now i tried to add those rules inside the traefik service in docker-compose.yml. That worked like a charm. Although i'd prefer to configure this global and middleware redirect…
Ralph Segi
  • 481
  • 1
  • 7
  • 9
6
votes
1 answer

Using traefik for docker internal traffic via websockets

I'm using docker in swarm mode for the services in my application and traefik to handle, well, the traffic. My goal is to make a separate service for each API section my application has (so for example requests on domain.com/api/foo_api go to the…
nn3112337
  • 459
  • 6
  • 21
6
votes
2 answers

Redirect URL to another URL by regex with Traefik

I want to redirect one URL to another URL through traefik. I am using docker for this configuration and below is my docker-compose.yml file version: '3' services: reverse-proxy: # The official v2.0 Traefik docker image image:…
Dhaval Goti
  • 447
  • 2
  • 10
  • 25
6
votes
1 answer

Traefik 2.0 and Docker set middleware without naming the router

I'm using traefik 2.0 with docker provider (swarm mode) and I wish to provide a default way for services publishing themselves on traefik avoiding conflicts. I managed to create a default rule matching my needs, but I'm now struggling because I…
6
votes
2 answers

Issues with Traefik v2.0 to use self signed certificate

I'm trying to setup docker with traefik to use self signed certificate on localhost I'm am developing on my local machine and I want to use docker with traefik. The problem I'm having is that i can't get self signed certificate to work with my…
6
votes
1 answer

Traefik and self-signed SSL

Noob to Traefik and Docker. I have prepared a self signed certiicate using: openssl req -x509 -newkey rsa:4096 -keyout www.example.co.uk.key -out www.example.co.uk.crt-days 365 In my traefik.toml file I have: [entryPoints] [entryPoints.http] …
Zakalwe
  • 1,444
  • 3
  • 14
  • 25
6
votes
1 answer

Setting up Traefik with Cloudflare

I am trying to setup traefik using a combination of this guide, and the code found here. I am using docker-compose with Unraid, so far I have the following code: traefik.toml: debug = false logLevel = "ERROR" defaultEntryPoints =…
Otis Wright
  • 1,980
  • 8
  • 31
  • 53
6
votes
1 answer

Traefik is ignoring docker with traefik.enable=true set

What did you expect to see? I Expected to see a new front-end and back-end when I docker-compose up my wordpress stack. What did you see instead? No new front or back ends. 2 Log lines = level=info msg="Skipping same configuration for provider…
JpaytonWPD
  • 485
  • 1
  • 7
  • 22
6
votes
1 answer

Is there a way to import a company root CA in traefik?

I have a docker swarm with traefik running in it and I want to be able to serve Grafana in https which is currently in http. I've tried with the following traefik compose configuration: version: "3.6" services: traefik: image: traefik …
IvanR
  • 198
  • 1
  • 1
  • 12
6
votes
1 answer

Traefik is using default cert even though acme.json file is generated correctly

I'm running into an odd issue using Traefik. I'd like to use ACME to generate TLS certs. My acme.json file seems to be getting populated correctly after performing verification using DNS, however, when I use OpenSSL to verify the cert, it appears to…
Paul Calabro
  • 1,748
  • 1
  • 16
  • 33
6
votes
3 answers

Can I have docker-compose restart a container when a file changes?

Docker-compose is nice- using docker-composer up -d will restart all containers where the docker-compose.yml has changed. It will not however pickup if I have changed the traefik.toml that one of my container needs to read on startup. Is it possible…
andig
  • 13,378
  • 13
  • 61
  • 98
6
votes
1 answer

What might be wrong with my Nuxt / Docker / Traefik config?

For some reason I can't get this to work. I'm trying to forward /api to API container. Error I'm getting: nuxt | [6:11:03 PM] Error: connect ECONNREFUSED 127.0.0.1:80 nuxt | at TCPConnectWrap.afterConnect [as oncomplete]…
emirowski
  • 265
  • 3
  • 13
6
votes
1 answer

GET http://api:1337/games net::ERR_NAME_NOT_RESOLVED for nuxt.js pages using asyncData

I have somewhat complicated setup with docker. Everything's working as expected except I have this weird problem. Visiting index page or /pages/_id pages I have no errors. But when I try to open /other-page it crashes. All are using the same API…
emirowski
  • 265
  • 3
  • 13
6
votes
1 answer

Not seeing the real IP in X-Forwarded-For with the basic setup of Traefik in Docker?

Fell in love with Traefik's presentation on youtube, so I've been trying to set it up. My docker server is on 192.168.0.23. Even when querying from another host from my LAN (192.168.0.144), I am always getting the internal IP in the…
doudou91
  • 71
  • 3
6
votes
1 answer

GET Request on Docker Traefik API - Block by CORS rules

I've got trouble finding how to reach my Traefik API using GET request from an other docker container. Context I have 2 docker container, one running a traefik instance : docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 -p…
Squalex
  • 311
  • 2
  • 11