opichon.docker_traefik

Ansible 角色:安装 traefik 代理作为 Docker 容器

一个用于将 traefik 代理安装为 Docker 容器的 Ansible 角色。

需求

此角色需要 Ansible 1.2 或更高版本。

角色变量

下面列出了 Ansible 变量及其默认值。

traefik_certificates: []
traefik_docker_domain
traefik_group: root
traefik_dir: /etc/traefik
traefik_network: traefik
traefik_user: root
traefik_volumes: []

acme_email: "[email protected]"
acme_domains:
  - domain: mydomain.com
    sans:
      - www.mydomain.com
acme_logging: true
acme_staging: false

示例剧本

---
- hosts: webservers
  roles:
    - dzangolab.docker_traefik
      traefik_certificates:
      -
          {
              CertFile: "/path/to/certificate.crt",
              KeyFile: "/path/to/keyfile.key"
          }
      traefik_docker_domain: mydomain.com
      traefik_network: mydomain
      traefik_volumes:
      - /etc/ssl:/etc/ssl

许可证

MIT

关于项目

Installs traefik proxy and other useful services as docker containers

安装
ansible-galaxy install opichon.docker_traefik
许可证
mit
下载
371
拥有者
Entrepreneur & CTO Since 2003, I have helped SMEs and startups in all their IT-related needs.