diff --git a/roles/traefik/templates/docker-compose.yml b/roles/traefik/templates/docker-compose.yml index 325f146..2f21293 100644 --- a/roles/traefik/templates/docker-compose.yml +++ b/roles/traefik/templates/docker-compose.yml @@ -105,8 +105,10 @@ services: - "--entryPoints.web.address=:80" - "--entryPoints.websecure.address=:443" - "--accesslog={{ traefik_access_log_enabled | bool | lower }}" +{% if traefik_dynamic_conf != omit %} - "--providers.file.directory=/etc/traefik/dynamic_conf" - "--providers.file.watch=true" +{% endif %} - "--providers.docker=true" - "--providers.docker.endpoint=tcp://dockersocket:2375" - "--providers.docker.exposedByDefault=false"