Comments (5)
Needless to say, that makes "forego" unnecessary too.
from nginx-proxy.
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.
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.
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.
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)
- Multiple port with multiple path on one container HOT 2
- HTTP2 syntax is not correct anymore in /etc/nginx/conf.d/default.conf since NGINX 1.25.1 HOT 8
- nginx proxy/nginx-proxy and nginx proxy/nginx-proxy with docker swam support HOT 1
- cannot load certificate, Expecting: TRUSTED CERTIFICATE HOT 20
- Weird comments cripple default.conf HOT 3
- I come in search of guidance, friendly url!
- Very active error.log HOT 5
- 500 Internal Server Error HOT 8
- SSL_POLICY=Mozilla-Modern got worse results on SSLLabs SSLtest than intermediate HOT 4
- phpipam + nginx-proxy = connection refused
- Broken testcase test/test_host-network-mode/test_host-network-mode.py HOT 1
- SSH Certificates will Not Update HOT 1
- HTTP/2 Rapid Reset Attack HOT 2
- Unable to download python requirements for testing HOT 1
- default.conf config file formatting corrupted and hardly readable (nginx -T) HOT 1
- Issue with Bookstack urls being re-written to http not https HOT 2
- 403 Forbidden error when serving static site HOT 1
- Cannot reach container in IPv6 network HOT 4
- Regression in Behavior with Fix #2186 Affecting SSL Connections HOT 9
- "daemon" directive is duplicate in /etc/nginx/nginx.conf error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-proxy.