Skip to content
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

feat: allow nginx / docker-gen network segregation #2279

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Knapoc
Copy link
Contributor

@Knapoc Knapoc commented Jul 24, 2023

This PR adds the ability to allow for network segregation of the nginx and docker-gen containers in a separate container setup.

As of now this is not possible as it is assumed, that docker-gen and nginx are attached to the same networks.

In case

  1. docker-gen and nginx do not share a network,
  2. docker-gen cannot reach the backend,
  3. and nginx would be able to connect to the backends,

docker-gen would set the server to a fallback-entry within the upstream directive.

This behavior is changed with this PR when the nginx-container is known to docker-gen (by having a label applied). In this case the fallback-entry is only set, when the backend is not available to nginx.

@Knapoc Knapoc force-pushed the network-segregation-seperate-containers branch from 858ee87 to 8bcb1c7 Compare July 24, 2023 10:19
@Knapoc Knapoc force-pushed the network-segregation-seperate-containers branch from 8bcb1c7 to 5ed66ea Compare July 24, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feat PR for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants