Should I be able to do the following?
in traefik.yml:
providers:
docker:
exposedByDefault: false
file:
directory: /etc/traefik/configuration
watch: true
...
docker-compose.yml:
version: "3.7"
services:
traefik:
image: "traefik:latest"
restart: unless-stopped
container_name: traefik
ports:
- "443:443"
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/etc/traefik/traefik.yml:ro
- ./configuration:/etc/traefik/configuration:ro
- ./certs:/etc/traefik/acme
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik-secure.service=api@internal"
- "traefik.http.routers.traefik-secure.rule=Host(`traefik.my.domain`)"
- "traefik.http.routers.traefik-secure.entrypoints=web-secure"
networks:
- web
networks:
web:
name: web
external: true
configuration/api.yml:
api:
dashboard: true
debug: true
In other words should I be able to have my traefik.yml file watch a configuration directory, and then split up my configuration into multiple files? fx configuration/api.yml configuration/tls.yml configuration/middleware.yml etc?