Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

✨ Docker Swarm mode with Traefik v2 #127

Merged
merged 2 commits into from May 26, 2020
Merged

✨ Docker Swarm mode with Traefik v2 #127

merged 2 commits into from May 26, 2020

Conversation

tiangolo
Copy link
Contributor

This PR upgrades the Docker Compose file for Docker Swarm mode with Traefik v2.

I just updated everything at DockerSwarm.rocks to use Traefik v2, this performs the equivalent upgrade here.

* Set and export an environment variable with the tag used by Traefik public to filter services (by default, it's `traefik-public`):

```bash
export TRAEFIK_PUBLIC_TAG=traefik-public
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have never used this to override the Traefik tag, I don't know anyone that has. And I'm making it "fixed" by default, in DockerSwarm.rocks and in the project generators (for FastAPI), so it's easier to simplify that and remove the optional env var to reduce complexity/noise.

Copy link
Owner

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @tiangolo

@stefanprodan stefanprodan merged commit 28957ff into stefanprodan:master May 26, 2020
@tiangolo tiangolo deleted the traefik-v2 branch May 30, 2020 19:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants