Made traefik.yml a template
This commit is contained in:
parent
6dd3a5b7a7
commit
8787722c6c
@ -2,3 +2,4 @@ traefik_name: traefik
|
||||
traefik_version: latest
|
||||
traefik_port: 8000
|
||||
traefik_admin_port: 8080
|
||||
traefik_domain: localhost
|
||||
|
@ -1,5 +1,5 @@
|
||||
- name: Install Traefik Configuration
|
||||
copy:
|
||||
template:
|
||||
src: traefik.yml
|
||||
dest: traefik.yml
|
||||
notify: Restart Traefik container
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user