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 a note on how to add label to a docker compose file #2611

Merged
merged 1 commit into from Jan 4, 2018

Conversation

jmaitrehenry
Copy link
Contributor

@jmaitrehenry jmaitrehenry commented Dec 21, 2017

What does this PR do?

Add a note to the docker backend documentation page on how to add a label using a docker-compose file.

Motivation

I made the mistake too many time and I still forgot about it.
When reading the documentation, I can't find a notice/note about it.

More

  • Added/updated documentation

Additional Notes

@ldez
Copy link
Member

ldez commented Dec 21, 2017

Could you rebase on the 1.5 branch ?

@ldez ldez added this to the 1.5 milestone Dec 21, 2017
@jmaitrehenry jmaitrehenry changed the base branch from master to v1.5 December 21, 2017 22:36
@jmaitrehenry
Copy link
Contributor Author

@ldez done

@ldez ldez removed the bot/no-merge label Dec 21, 2017
@@ -145,6 +145,18 @@ To enable constraints see [backend-specific constraints section](/configuration/

## Labels: overriding default behaviour

!!! note
If you use a docker-compose file, labels should be defined in the `deploy` part of your service.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/docker-compose file/composefile/

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

Hello @jmaitrehenry

Many thanks for this PR which can be helpful for docker-compose beginners 😉

I have two little suggestions.

@@ -145,6 +145,18 @@ To enable constraints see [backend-specific constraints section](/configuration/

## Labels: overriding default behaviour

!!! note
If you use a docker-compose file, labels should be defined in the `deploy` part of your service.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can precise two points :

```yaml
version: "3"
services:
nginx:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use another service name? Like whoami for example? 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oups sure, I always use nginx as service example, I didn't realize.

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@traefiker traefiker merged commit e83599d into traefik:v1.5 Jan 4, 2018
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.

None yet

6 participants