nginx-proxy / nginx-proxy/docker-gen
How about swarm? (again)
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 4.6k
- Forks
- 609
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 4
Description
I see that this version of docker-gen only watch the container over docker socket,
there is a chance to improve this docker-gen to suport swarm mode? because the github.com/fsouza/go-dockerclient already support swarm api,
or if i want to modify this docker-gen, what code that will be affected when i try to change the api value ListContainers(docker.ListContainersOptions{......}) become ListServices(docker.ListServicesOptions{}) ??
i see that the parameter required for the nginx-proxy are ENV variable and can get it from the service api instead inspect the container 😄
Thanks you
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Go code that calls ListContainers and follows container inspection data into nginx-proxy environment variables. Compare that path with go-dockerclient's ListServices and swarm API support. Done would mean docker-gen can obtain the required service metadata and generate the expected nginx-proxy configuration in swarm mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100