Made traefik.yml a template

This commit is contained in:
Kris Lamoureux 2019-11-07 18:11:36 -05:00
parent 6dd3a5b7a7
commit 8787722c6c
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
3 changed files with 3 additions and 2 deletions

View File

@ -2,3 +2,4 @@ traefik_name: traefik
traefik_version: latest
traefik_port: 8000
traefik_admin_port: 8080
traefik_domain: localhost

View File

@ -1,5 +1,5 @@
- name: Install Traefik Configuration
copy:
template:
src: traefik.yml
dest: traefik.yml
notify: Restart Traefik container

View File

@ -1,7 +1,7 @@
# Docker configuration backend
providers:
docker:
defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)"
defaultRule: "Host(`{{'{{'}} trimPrefix `/` .Name }}.{{ traefik_domain }}`)"
# API and dashboard configuration
api: