From 7be5efe1dda696391f6c4342384d8eaa4f7d19ea Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Mon, 2 Dec 2019 19:14:59 -0500 Subject: [PATCH] Disable exposure by default --- roles/traefik/tasks/main.yml | 2 +- roles/wordpress/tasks/main.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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: