Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Having a GitLab instance running on the same machine as the nginx-proxy leads to multiple restarts of the nginx process, due to many started and stopped containers.

Every started/stopped container, results in a run of docker-gen. As the GitLab pipeline containers are just temporary, the changes should/could be ignored by docker-gen.

Even if the /etc/nginx/conf.d/default.conf isn't changed, the nginx process gets restarted every time. This is causing real overhead and load on the server.

A solution might be to re-enable --only-exposed:
b325dad and a0dee5c

Dou you know the reasons why the -only-exposed flag has been removed?

You must be logged in to vote

Replies: 1 comment · 1 reply

Comment options

I've tried the 3 container setup with the -only-exposed flag for docker-gen

It seems like there are some changes in the /etc/nginx/conf.d/default.conf triggered by something. I have to try to detect what exactly is changing.
Maybe someone has also noticed something similar?

You must be logged in to vote
1 reply
@JanMalte
Comment options

The order of the checked networks is random, so we got changes for comment lines like

        # Cannot connect to network 'elm    <
					    >	        # Cannot connect to network 'elmar
        # Cannot connect to network 'git    <
					    >	        # Cannot connect to network 'gitla
        # Cannot connect to network 'hc-    <
					    >	        # Cannot connect to network 'hc-vo
        # Cannot connect to network 'sec    <
					    >	        # Cannot connect to network 'secon
					    >	        # Cannot connect to network 'stats
        # Cannot connect to network 'sta    <
        # Cannot connect to network 'elm    <
					    >	        # Cannot connect to network 'elmar
        # Cannot connect to network 'sec    <
					    >	        # Cannot connect to network 'secon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.