diff --git a/roles/traefik_docker/templates/traefik.service.j2 b/roles/traefik_docker/templates/traefik.service.j2 index 2eaa3c4..79f2785 100644 --- a/roles/traefik_docker/templates/traefik.service.j2 +++ b/roles/traefik_docker/templates/traefik.service.j2 @@ -6,8 +6,8 @@ Requires=docker.service [Service] ExecStartPre=-/usr/bin/docker rm --force {{ traefik_container_name }} ExecStart=/usr/bin/docker run --rm --name {{ traefik_container_name }} \ - -v /var/run/docker.sock:/var/run/docker.sock -v {{ docker_volumes_dir }}/traefik/traefik.toml:/traefik.toml \ - -v {{ docker_volumes_dir }}/traefik/traefik_dynamic.toml:/traefik_dynamic.toml -v {{ docker_volumes_dir }}/traefik/letsencrypt/:/letsencrypt \ + -v /var/run/docker.sock:/var/run/docker.sock -v {{ docker_volumes_dir }}/traefik/traefik.yml:/traefik.yml \ + -v {{ docker_volumes_dir }}/traefik/traefik_dynamic.yml:/traefik_dynamic.yml -v {{ docker_volumes_dir }}/traefik/letsencrypt/:/letsencrypt \ -p 80:80 -p 443:443 -p 8448:8448 --network traefik traefik:v2.10.5 ExecStop=/usr/bin/docker stop {{ traefik_container_name }} Restart=always