Traefik provides mutliple ways to specify its configuration:
In this post I will only focus on CLI commands because those can be directly used within a docker-compose.yml file.
There are 2 types of configurations in Traefik: static and dynamic.
The Traefik documentation always displays the CLI version for static ones. These ones you just append to the command: section in your compose file, e.g.: