No description
Find a file
2021-11-13 15:45:48 -08:00
defaults Consolidated variable usage and added install path. 2020-12-08 08:32:07 -08:00
handlers Initial commit 2020-03-23 23:42:14 +01:00
meta Initial commit 2020-03-23 23:42:14 +01:00
tasks Use traefik 2.5. 2021-11-13 15:45:48 -08:00
templates Use traefik 2.5. 2021-11-13 15:45:48 -08:00
tests Initial commit 2020-03-23 23:42:14 +01:00
vars Initial commit 2020-03-23 23:42:14 +01:00
.travis.yml Initial commit 2020-03-23 23:42:14 +01:00
LICENSE Initial commit 2020-03-23 23:42:14 +01:00
README.md Consolidated variable usage and added install path. 2020-12-08 08:32:07 -08:00

Traefik (Docker-Compose)

Traefik acts as a reverse proxy and loadbalancer in container environments. It will handle Let's Encrypt certificates for Docker Compose services automatically.

Requirements

Role Variables

traefik_install_user: {{ ansible_user }
traefik_install_path: /home/{{ traefik_install_user }}
traefik_letsencrypt_email: 
traefik_virtual_host: localhost
traefik_expose_internally: True
traefik_expose_externally: False
traefik_use_acme_staging: True
traefik_dns_challenge_provider: False
# NOT WORKING YET!
# Extra mapping, for name -> internal address, like myservice: 'http://otherhost:12345'
#traefik_extra_mapping:
#   myservice: http://otherhost:12345
# use key:value pairs here to add additional environment variables to your traefik docker image.
# for instance, if you're using a dns challenge provider place your api keys etc here.
#traefik_additional_env_vars:
#  # DUMMY_KEY: DUMMY_VALUE
#  CLOUDFLARE_EMAIL: EMAIL
#  CLOUDFLARE_API_KEY: API_KEY

License

MIT

Author Information

This role was created in 2020 by Jan Beilicke.