Upgrade Traefik to version 2 (#199)

* 🔧 Add STACK_NAME to .env for Traefik labels

*  Upgrade Docker Compose to use Traefik v2

*  Enable Traefik v2 in Docker Compose override for local development

* 🐛 Use internal HTTPS redirect in case the deployment is not through DockerSwarm.rocks
This commit is contained in:
Sebastián Ramírez
2020-05-24 23:35:49 +02:00
committed by GitHub
parent bdc40a17f6
commit e4c668d7cd
3 changed files with 106 additions and 57 deletions

View File

@@ -3,6 +3,8 @@ DOMAIN=localhost
# DOMAIN=localhost.tiangolo.com
# DOMAIN=dev.{{cookiecutter.domain_main}}
STACK_NAME={{cookiecutter.docker_swarm_stack_name_main}}
TRAEFIK_PUBLIC_NETWORK=traefik-public
TRAEFIK_TAG={{cookiecutter.traefik_constraint_tag}}
TRAEFIK_PUBLIC_TAG={{cookiecutter.traefik_public_constraint_tag}}