How to integrate Traefic static and dynamic config in Docker Swarm stack deploy yml?

I would like to run Traefik via Docker Swarm on multiple servers.

Currently I declare a Docker Swarm stack deploy file.

The challenge I am facing is that I can not include the SSL configuration in the declaration. Currently I need to make sure that every server has the config.yml SSL configuration in a separate file.

So with Docker Swarm I can scale out Traefik without an issue, control it from a central point. But at the same time I need to manually make sure that the SSL configuration file and the SSL certificates themselves are present on each of the servers, that makes life complicated.

Horror story: of course we forgot to update the SSL config file one time, it took a day to find the sudden issue with broken SSL connections.

Is there a way to get the SSL configuration inline with the Docker Swarm deploy file?

/r/Traefik Thread