Git Product home page Git Product logo

traefik-docker-ansible's Introduction

Ansible: Multiple applications with Traefik 2.x and Docker

This is an Ansible playbook to install multiple applications on a single Ubuntu server with Docker and Traefik 2.x updated with Watchtower.

Requirements

  • Ansible >= 2.5

Tools

This playbook is designed to install a bunch of useful tools:

Installing on production

Copy the hosts example file and change the values to your needs:

$ cp hosts.example.ini hosts.ini

Setup your variables in the playbook.yml file.

Then run the playbook:

$ ansible-playbook -i hosts.ini playbook.yml

# For one role only
$ ansible-playbook -i hosts.ini playbook.yml --tags "traefik"

Example

I use this playbook to deploy Traefik and Docker in production to host self-hosted services.

Contributing

Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.

License

This project is released under the MIT license.

traefik-docker-ansible's People

Contributors

bzhazreal avatar guillaumebriday avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

traefik-docker-ansible's Issues

Failed to find required executable rsync in paths: ...

Get this error
Failed to find required executable rsync in paths: /ansible/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

on TASK [monitoring : Adding grafana provisioning folder]

ansible --version

ansible 2.8.5
  config file = /Users/kyusupov/mm-folder/mm-ansible/ansible.cfg
  configured module search path = [u'/Users/kyusupov/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /Library/Python/2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.16 (default, Oct 17 2019, 17:14:30) [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.32.4) (-macos10.15-objc-s

How to use the traefik_api_password part?

Hi!

I was trying to use your traefik role.

But I got this warning

AnsibleFilterError: crypt.crypt does not support ''bcrypt'' algorithm'

Also

msg: 'Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) The error was: No module named requests.exceptions'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.