Code Monkey home page Code Monkey logo

proxy's Introduction

Proxy

The complete solution for create a automated proxy with nginx for docker containers inspired by docker image jwilder/nginx-proxy e jrcs/letsencrypt-nginx-proxy-companion.

Features

This project is under development, and not all features are ready, check out the roadmap below to know what I'm working on. If you want to help with this project, feel free to ask or submit a pull request.

Roadmap

  • Automated create/update of nginx config when container is created/deleted.
  • Automated create/renewal of Let's Encrypt certificates using certbot.
  • Let's Encrypt / ACME domain validation through challenge.
  • Extensible to create custom templates.
  • Multiple hosts.
  • IPV6 support.

Usage

1. Create the proxy

First of all, you must create the proxy. With the command below, you create the proxy easily:

$ docker container run --name proxy -p 80:80 -v /var/run/docker.sock:/app/docker.sock:ro -d italoiz/proxy

There is something very important happening here. You must pass the -v /var/run/docker.sock:/app/docker.sock:ro flag. This is what will allow node.js to listen for docker container creation events.

2. Be happy! Create your containers by passing environment variables:

$ docker container run --name example -e VIRTUAL_HOST=example.com -d nginx

The proxy will direct traffic from the example.com domain to the automatically created container.

License

MIT © Italo Izaac

proxy's People

Contributors

italoiz avatar

Stargazers

 avatar  avatar

Forkers

ideamaker

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.