Git Product home page Git Product logo

Comments (5)

andrefernandes avatar andrefernandes commented on May 18, 2024

Needless to say, that makes "forego" unnecessary too.

from nginx-proxy.

andrefernandes avatar andrefernandes commented on May 18, 2024

I am still trying to figure things out, but I believe that you can:

a) mount the docker binary on the docker-gen container (as you do with the socket)
b) send the nginx reload signal (SIGHUP I think) with docker kill

Let's say nginx container is named "web":

CID=$(docker inspect --format "{{ .Id }}" web)
docker kill --signal="SIGHUP" $CID

from nginx-proxy.

andrefernandes avatar andrefernandes commented on May 18, 2024

Nice, got it to work on:

https://github.com/andrefernandes/docker-gen

https://github.com/andrefernandes/docker-nginx

Both nginx and docker-gen containers share a volume. Nginx container knows nothing about docker-gen and gets to reload when SIGHUP signals come.

Feels nice :)

from nginx-proxy.

jwilder avatar jwilder commented on May 18, 2024

Nice. @vaceletm did something similar using inotify in #5.

While I understand the concern about the docker socket bound into the container, I'd rather keep nginx-proxy simple to run and get productive. I've been thinking of having a docker-gen image that would work w/ the offical nginx image (or others) as well but have not had time to experiment with it yet. It would an alternative nginx-proxy setup that I'd add to the documentation. Using fig to start the two seems like a good idea.

from nginx-proxy.

jwilder avatar jwilder commented on May 18, 2024

docker-gen 0.3.4 has a new feature that should make running nginx and docker-gen in separate containers easier. There is a new -notify-sighup that will sighup a container. It could be used to sighup an nginx container. 0.3.4 should also work better with shared volumes between containers.

from nginx-proxy.

Related Issues (20)

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.