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

Add support to pull data from multiple docker endpoints (e.g. swarm) #548

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

Conversation

tarasov65536
Copy link
Contributor

This PR adds support to request container data from multiple docker endpoints. For example in swarm you now can get containers information from all nodes at once.

Main idea is that endpoint parameter refers to local docker node for which docker-gen generates configs. And the swarm-node parameters define additional docker nodes from which docker-gen pulls containers information.

Back compatability preserved. If no swarm-node stated then docker-gen collects information only from local docker endpoint defined by endpoint parameter.

In case when stated at least one swarm-node parameter docker-gen will collect containers information from swarm-node list. And use endpoint only for "controlling" purpose (e.g. to notify containers).

Root use-case for this PR is to make possible for projects like nginx-proxy to have full information across all swarm cluster.

fix getContainers
# Conflicts:
#	internal/generator/generator.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants