nginx-proxy / nginx-proxy/docker-gen

How about swarm? (again)

Open
#240 4 comments 16 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.