traefik-v2

colinwilson/traefik-v2/docker

Terraform Module HCL DOCKER

Terraform module to provision a Traefik (v2.11.22) reverse proxy / load balancer on Docker swarm

Install
module "traefik-v2" {
source = "colinwilson/traefik-v2/docker"
version = "0.3.6"
}
plain text: /constructs/tfmod-colinwilson-traefik-v2-docker/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-docker-traefik-v2 An opinionated Terraform module to provision a Traefik v2 reverse proxy/load balancer container on a Docker host in Swarm mode. See the variables file for the available configuration options. ![](https://res.cloudinary.com/qunux/image/upload/v1608070821/traefik_2.3.5_ds_screenshot_2_opt_fqyanb.png) Tutorial Provision a Docker Swarm Host with Traefik (v2) on Hetzner Cloud using Terraform Modules - Part 2 Compatibility This module is meant for use with Terraform 0.13 or higher. Features [x] Create a Traefik load balancer/proxy service on a Docker Swarm mode host [x] Support for multiple (optional) Let's Encrypt dnsChallenge providers [x] Traefik dashboard enabled and protected by HTTP Basic Auth. Configurable password [x] Acquire (generate) HTTPS certificates auto

Inputs (14)
NameTypeDescriptionDefault
hostnamestringHostname for accessing Traefik e.g. traefik.example.com required
acme_emailstringLet's Encrypt email address used for registration. required
cloudflare_zone_tokenstringCloudflare ZONE Token""
cloudflare_emailstringCloudflare Account Email""
cloudflare_api_keystringCloudflare Global API Key""
networksset(string)List of additional networks to connect Traefik to.[]
traefik_networkstringTraefik (Docker overlay) network name."traefik"
traefik_network_attachableboolMake the default Traefik network attachable?false
traefik_versionstringTraefik Docker image version."2.11.22"
lets_encrypt_resolverslist(string)A list of DNS Challange providers to enable in the Traefik configuration[]
cloudflare_dns_tokenstringCloudflare DNS Token""
passwordstringPassword to login to Traefik dashboard (username: admin)"traefik"
live_certboolConfigure the Traefik instance with a live SSL certificate?false
lets_encrypt_keytypestringThe SSL certificate key type Let's Encrypt issues: EC256, EC384, RSA2048, RSA409"RSA2048"
Outputs (3)
acme_volume_mountpoint — Mount point of the ACME certificates storage volume
traefik_network_name — Name of the Traefik overlay network
traefik_service_config_name — Name of generated Traefik configuration file
Resources (4)
docker_configdocker_networkdocker_servicedocker_volume
Details
FrameworkTerraform Module
LanguageHCL
Version0.3.6
Cloud DOCKER
★ Stars19
Forks7
Total downloads831
Inputs14
Outputs3
Resources4
Examples1
Namespacecolinwilson
Updated