warhorse.traefik_docker

Ansible Traefik (Docker)

CI
warhorse.traefik_docker
warhorse.traefik_docker
warhorse.traefik_docker
License
Commit

Traefik Logo

Install Traefik (Docker)

This role is part of the Warhorse Automation Framework. You can use this role with Warhorse or by itself.

Docker Image

traefik

Role Variables

You can find all the variable options in ./defaults/main.yml.

  • traefik_dir: Directory for the Traefik container
  • traefik_docker_version: Version of the Docker image
  • traefik_ports: Ports for the Traefik container
  • traefik_hostname: Hostname for the Traefik container
  • traefik_container_name: Name of the Traefik container
  • traefik_docker_network: Docker network for the Traefik container

Dependencies

To install required dependencies, run:

ansible-galaxy install geerlingguy.docker geerlingguy.pip

Install

To install the Traefik Docker role, use:

ansible-galaxy install warhorse.traefik_docker

Example Playbook

Here is a simple example of how to use the role in your playbook:

- hosts: servers
  roles:
      - { role: warhorse.traefik_docker }

Example Variables

You can set the following variables in your playbook:

traefik_hostname: "traefik"
traefik_container_name: "traefik"
traefik_docker_version: "latest"
traefik_docker_labels: {}
traefik_docker_network: "traefik"
traefik_dir: '/opt/docker/traefik'
traefik_ports:
  - '80:80'
  - '443:443'

License

MIT/BSD

Author Information

By Ralph May

Informazioni sul progetto

Role to deploy traefik in docker.

Installa
ansible-galaxy install warhorse.traefik_docker
Licenza
mit
Download
1.7k
Proprietario