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
59
votes
11 answers

How to redirect http to https with Traefik 2.0 and Docker Compose labels?

Please note that it is a Traefik V2 question. I had a solution on V1 but V2 is a total rewamp. This above is supposed to redirect http://whoami.mysite.com to https://whoami.mysite.com. The https is working nicely. The http don't redirect to https…
Xiiryo
  • 3,021
  • 5
  • 31
  • 48
29
votes
2 answers

Docker Swarm Windows Worker with Traefik returns Gateway Timeout

The objective is to get a mixed OS Docker swarm running using Linux servers and Windows 10 Machines running Docker For Windows Currently Windows workers are theoretically supported on mixed os swarms provided the --endpoint-mode flag is set to…
Matt Hawes
  • 291
  • 2
  • 7
26
votes
3 answers

Traefik > "Bad gateway" (error 502) for some containers

I meet some problems using traefik with docker and I don't know why. With some containers, it's works like a charm and for other ones, I have an error when I try to access to these ones : Bad gateway (error 502). Here is my traefik.toml : # Service…
Alextoch
  • 263
  • 1
  • 3
  • 5
24
votes
2 answers

How to get traefik to redirect to specific non-docker port from inside docker

First of all I'm sorry if I'm not using the right terms to ask this question, but I'm not up to the terminology in place. I have traefik running in a docker container and serving some services with the PathPrefix option, for instance,…
jbssm
  • 6,861
  • 13
  • 54
  • 81
23
votes
4 answers

Does it make sense to run Kubernetes on a single server?

I'm using Docker I have implemented a system to deploy environments (on a single server) based on Git branches using Traefik (*.dev.domain.com) and Docker Compose templates. I like Kubernetes and I've never switched to it since I'm limited to one…
Florian Lopes
  • 1,093
  • 1
  • 13
  • 20
21
votes
4 answers

Gateway timeout with traefik and php fpm

I have a problem with setting up mailcow with traefik, I encounter gateway timeouts. I also have this problem with nextcloud, so I would be really interested, what causes these issues with gateway timeout. I guess it has to do with port 9000 and…
metanerd
  • 713
  • 1
  • 6
  • 21
20
votes
1 answer

Multiple Routers and Services on the same container with traefik 2

I'm currently trying to get traefik to use multiple routers and services on a single container, which isn't working and i don't know if this is intended at all. Why? Specificly i'm using an gitlab omnibus container and wanted to use / access…
nevotheless
  • 724
  • 1
  • 6
  • 14
19
votes
5 answers

How do you mount the docker socket on Windows?

I'm trying to make an application work on Windows that's been developed only on Unices. It's all dockerized and it uses the traefik load balancer. The volumes for the docker for running traefik looks like this: volumes: -…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
18
votes
3 answers

traefik - multiple port bindings for the same host V2

I cannot figure out how to get a simple service to be accessible by both http and https on localhost. This is my setup so far and I'm using traefik V2.xxx. I want to be able to hit this site using both https/http protocols (for reasons on dev…
TugboatCaptain
  • 4,150
  • 3
  • 47
  • 79
18
votes
5 answers

Editing Files inside of a Docker Container

How can I edit the config files that are inside of a docker container that has been downloaded on the host? I am using this tutorial but I am not sure where to find and edit the traefik.toml file
Lolling Banana
  • 211
  • 1
  • 2
  • 4
18
votes
2 answers

Is there a way to serve static resources with Traefik?

I'd like to serve static ressources such as images, js bundles, html pages... with Traefik like I was able to do with nginx # nginx config server { root /www/data; location ~ \.js { root /www/bundles; } } Many thanks Cheers
Mathias Gilson
  • 483
  • 1
  • 5
  • 11
17
votes
5 answers

Internal Server Error with Traefik HTTPS backend on port 443

With docker, I try to setup a traefik backend using HTTPS port 443, so communication between the traefik container and the app container (apache 2.4) will be encrypted. I got an Internal Server Error if i activate traefik.protocol=https and…
Yivan
  • 191
  • 1
  • 1
  • 4
16
votes
3 answers

How to implement fail2ban with Traefik

I'm interested in setting up fail2ban with my Traefik deployment. I found a gist that has some snippets in it, but I'm not clear on how to use them. Can anyone fill in the blanks please? Or, is there a better way to implement fail2ban style…
Seffyroff
  • 163
  • 1
  • 1
  • 5
16
votes
1 answer

Redirect in Traefik from one domain to another

According to the Traefik 1.7 documentation you should be able to have Traefik perform a 302 redirect using: traefik.ingress.kubernetes.io/redirect-regex traefik.ingress.kubernetes.io/redirect-replacement My goal is to simply remove the www. from…
DanielM
  • 6,380
  • 2
  • 38
  • 57
16
votes
1 answer

Gitlab 'Gateway Timeout' behind traefik proxy

So I'm trying to set up a gitlab-ce instance on docker swarm using traefik as reverse proxy. This is my proxy stack; version: '3' services: traefik: image: traefik:alpine command: --entryPoints="Name:http Address::80…
Ernest Okot
  • 880
  • 3
  • 8
  • 23
1
2 3
99 100