|-- traefik
|---|-- docker.compose.yml
|---|-- domains
|---|---| main.yml
|---|---| foo.myapp.com.yml --> all generated subdomain will be here
|---|-- traefik.yml
Suppose you have two service, app-be and app-fe. In app-be, you have dynamic route and want to map to subdomain /page/dynamic/foo --> foo.myapp.com /page/dynamic/bar --> bar.myapp.com
Just create foo.myapp.com.yml and bar.myapp.com via script, then traefik and cloudflare will handle the rest. No need to restart anything