Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to trigger reload on nginx-proxy from other container? #450

Closed
onnimonni opened this issue May 7, 2016 · 2 comments
Closed

How to trigger reload on nginx-proxy from other container? #450

onnimonni opened this issue May 7, 2016 · 2 comments

Comments

@onnimonni
Copy link

Hey!

I made https://github.com/onnimonni/signaler for generating ssl certificates automatically for docker containers which I use with this nginx-proxy container. I'm only using this in local development.

My problem is that the ssl generator container is not fast enough to create the ssl certificate for nginx-proxy and I need to restart the containers to retrigger nginx-proxy to read my ssl certificates again. Is there a way to reload nginx-proxy configs straight from my ssl generator container or set it up in way which watches changes in /etc/nginx/certs?

My whole setup can be seen in this docker-compose.yml file: https://github.com/devgeniem/gdev/blob/master/docker/services.yml

@wader
Copy link

wader commented May 7, 2016

@nigelsim
Copy link

nigelsim commented Sep 7, 2019

I've encountered the same issue, and I'm just making some notes about what I've found here so that either myself, or someone else can follow up on.

The best outcome would to be able to send a HUP or similar to the container and have it reload the configs. Having to know the internal setup of the container providing the proxying is fragile.

The docker-gen and nginx containers each seem to support this behaviour out of the box, but the nginx-proxy container, which uses Forego does not.

Additionally, in my particular configuration I'm updating the virtual host specific files which are included in the /etc/nginx/conf.d/default.conf, meaning that docker-gen does not detect the change, so does not signal nginx.

@tkw1536 tkw1536 added the kind/question Issue that might be transferred to Discussions label Apr 10, 2022
@tkw1536 tkw1536 removed the kind/question Issue that might be transferred to Discussions label Apr 20, 2022
@tkw1536 tkw1536 converted this issue into discussion #1965 Apr 20, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants