Skip to content

Traefik Template

Overview

Traefik Template is a Saltbox module that generates a Docker Compose template with Traefik configuration.


Deployment

sb install generate-traefik-template

Role Defaults

Variables can be customized using the Inventory. (1)

  1. Example override

    traefik_template_file: "custom_value"
    

    Avoid overriding variables ending in _default

    When overriding variables that end in _default (like traefik_template_docker_envs_default), you replace the entire default configuration. Future updates that add new default values will not be applied to your setup, potentially breaking functionality.

    Instead, use the corresponding _custom variable (like traefik_template_docker_envs_custom) to add your changes. Custom values are merged with defaults, ensuring you receive updates.

traefik_template_file
# Type: string
traefik_template_file: "/tmp/docker-compose.yml"