Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Great guide, thanks! Perfectly timed as well.
The docker-compose snippet for wordpress has a line with: - traefik.http.routers.blog.tls.cert-provider=lets-encrypt while the full version of the file has: - traefik.http.routers.blog.tls.certresolver=lets-encrypt
The later one seems to be the correct one.
I felt I needed to take the time to let you know that after countless tutorials, trial and error (thank glob for click to redeploy any OS vps’s ammarite?) THIS tutorial is what finally brought me into the light. THANK you for your time and effort, as well as the patience and ability to write out a wonderfully formatted tutorial. I appreciate you.
Best howto about traefik 2 ever. Clear and simple.
To make it even better I will only add a very small intro explaining basic traefik concepts (entrypoints, routers, rules, middleware, services and providers) because they changed a little since version 1… or link documentation where this is explained in detail.
BTW, there is a small error in docker-compose with labels duplicated in the adminer section:
adminer:
image: adminer:4.6.3-standalone
labels:
labels:
Thanks for sharing!
Great guide, awful timing, had just set up a traefik v1 testserver haha.
One thing I’m wondering is why you’re using a docker run command instead of a nicely setup docker-compose file for the main entry point.
version: '3.3'
services:
traefik:
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '$PWD/traefik.toml:/traefik.toml'
- '$PWD/traefik_dynamic.toml:/traefik_dynamic.toml'
- '$PWD/acme.json:/acme.json'
ports:
- '80:80'
- '443:443'
network_mode: web
container_name: traefik
image: 'traefik:v2.2'
Hey,
can someone tell me how i would reference the basic auth from the dynamic.toml?
I would like to use the same simpleAuth for a different docker compose container.
Thanks in advance!
Nice tutorial! I’ve implemented everything and have a question that may challenge. On the blog container the domain I’m using resolves to 127.0.0.1. This means that https://mydomain.com is resolved within the blog container. This is ok for http but not https as https is managed by Traefik. I think I’ve fixed it by manually editing the hosts file (and pointing my domain to the IP of the Traefik container) but I don’t know if this is the best way or how to do it a ‘docker’ way. Thx
Hey! Awesome post man, I really appreciate you sharing this knowledge with the community. I’ve spent a lot of time trying to make it work in my VPS until I found this post.
I just wanted to ask if there is a way to set a container or app to the default route mydomain.com? I want to have a landing page on mydomain.com and I want to have some other app running on app.mydomain.com.
Should I just set the front end host rule to (mydomain.com)?
Thanks again for this awesome post man, keep it up!
This is a great tutorial however…
am I missing something with the certificate? I’ve followed the instructions exactly but my server is telling my the cert is the default Traefik one and not the LE cert. Do I need to create an account or register an email for it to work properly?
Hi there, I am having trouble getting the dashboard to show. I tripled checked my basic auth cred, but I can’t seem to log in to the dashboard. Any help or pointer would be appreciated, thanks!