diff --git a/roles/traefik/tasks/main.yml b/roles/traefik/tasks/main.yml index c4a35be..919edf5 100644 --- a/roles/traefik/tasks/main.yml +++ b/roles/traefik/tasks/main.yml @@ -2,7 +2,7 @@ docker_container: name: "{{ traefik_name }}" image: traefik:{{ traefik_version }} - command: --api.insecure=true --providers.docker + command: --api.insecure=true --providers.docker --providers.docker.exposedbydefault=false state: started restart_policy: always ports: diff --git a/roles/wordpress/tasks/main.yml b/roles/wordpress/tasks/main.yml index f07d74d..23bced7 100644 --- a/roles/wordpress/tasks/main.yml +++ b/roles/wordpress/tasks/main.yml @@ -18,6 +18,7 @@ volumes: wordpress:/var/www/html labels: traefik.http.routers.wordpress.rule: "Host(`{{ wordpress_domain }}`)" + traefik.enable: "true" links: - "{{ mariadb_name }}" env: