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

Fix providers.swarm "Configuration Examples" in doc, provide real life example #10698

Open
2 tasks done
bluepuma77 opened this issue May 6, 2024 · 1 comment
Open
2 tasks done
Labels
area/documentation contributor/wanted Participation from an external contributor is highly requested kind/bug/confirmed a confirmed bug (reproducible).

Comments

@bluepuma77
Copy link

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you expect to see?

Users are following the "Configuration Examples" in doc (community post):

providers:
  swarm:
    # swarm classic (1.12-)
    # endpoint: "tcp://127.0.0.1:2375"
    # docker swarm mode (1.12+)
    endpoint: "tcp://127.0.0.1:2377"

This is of course not working. In most real life use cases, when Traefik is working with Docker Swarm, Traefik itself will be in a container and then Docker socket will not be available on localhost.

Furthermore this seems totally outdated, as "swarm classic" was retired 4 years ago.

So a better example would be:

providers:
  swarm: {}

or extended with improved security:

providers:
  swarm:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
@jspdown jspdown added area/documentation kind/bug/confirmed a confirmed bug (reproducible). contributor/wanted Participation from an external contributor is highly requested and removed status/0-needs-triage labels May 13, 2024
@nmengin
Copy link
Contributor

nmengin commented May 13, 2024

Hey @bluepuma77,

Thank you for reaching out.
We agree that this documentation section should be fixed.

If you or another community member would like to build it, let us know, and we will work with you to make sure you have all the information needed so that it can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation contributor/wanted Participation from an external contributor is highly requested kind/bug/confirmed a confirmed bug (reproducible).
Projects
None yet
Development

No branches or pull requests

4 participants