[GH-ISSUE #267] Add labels to Docker image #175

Closed
opened 2026-03-15 13:02:22 +03:00 by kerem · 5 comments
Owner

Originally created by @TobiX on GitHub (Mar 18, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/267

Hi!

First: Thanks for this tool. I have switched from MailHog und really like all the new features (tags, dark theme, etc.)

I currently have just a small request: Could you add some labels to the Docker image?

I think a fairly uncontroversial set would be:

LABEL org.opencontainers.image.source="https://github.com/axllent/mailpit" \
  org.opencontainers.image.url="https://mailpit.axllent.org/" \
  org.opencontainers.image.licenses="MIT"

This helps tools like Renovate (and Dependabot?) to link and embed changelogs into update PRs (for example when using docker images in Helm charts)

Originally created by @TobiX on GitHub (Mar 18, 2024). Original GitHub issue: https://github.com/axllent/mailpit/issues/267 Hi! First: Thanks for this tool. I have switched from MailHog und really like all the new features (tags, dark theme, etc.) I currently have just a small request: Could you add some [labels](https://github.com/opencontainers/image-spec/blob/main/annotations.md#back-compatibility-with-label-schema) to the Docker image? I think a fairly uncontroversial set would be: ```dockerfile LABEL org.opencontainers.image.source="https://github.com/axllent/mailpit" \ org.opencontainers.image.url="https://mailpit.axllent.org/" \ org.opencontainers.image.licenses="MIT" ``` This helps tools like [Renovate](https://github.com/renovatebot/renovate) (and Dependabot?) to link and embed changelogs into update PRs (for example when using docker images in Helm charts)
kerem 2026-03-15 13:02:22 +03:00
  • closed this issue
  • added the
    docker
    label
Author
Owner

@axllent commented on GitHub (Mar 18, 2024):

Thanks for this, I'll look into it and add something in the near future 👍

<!-- gh-comment-id:2003215142 --> @axllent commented on GitHub (Mar 18, 2024): Thanks for this, I'll look into it and add something in the near future 👍
Author
Owner

@axllent commented on GitHub (Mar 23, 2024):

I've added the following to the Dockerfile:

LABEL org.opencontainers.image.title="Mailpit" \
  org.opencontainers.image.description="An email and SMTP testing tool with API for developers" \
  org.opencontainers.image.source="https://github.com/axllent/mailpit" \
  org.opencontainers.image.url="https://mailpit.axllent.org" \
  org.opencontainers.image.documentation="https://mailpit.axllent.org/docs/" \
  org.opencontainers.image.licenses="MIT"

I trust this will be sufficient?

Unless you have good reason to require this "now", I'll wait until I have a few more changes before releasing a new version 👍

<!-- gh-comment-id:2016332222 --> @axllent commented on GitHub (Mar 23, 2024): I've added the following to the Dockerfile: ``` LABEL org.opencontainers.image.title="Mailpit" \ org.opencontainers.image.description="An email and SMTP testing tool with API for developers" \ org.opencontainers.image.source="https://github.com/axllent/mailpit" \ org.opencontainers.image.url="https://mailpit.axllent.org" \ org.opencontainers.image.documentation="https://mailpit.axllent.org/docs/" \ org.opencontainers.image.licenses="MIT" ``` I trust this will be sufficient? Unless you have good reason to require this "now", I'll wait until I have a few more changes before releasing a new version :+1:
Author
Owner

@TobiX commented on GitHub (Mar 23, 2024):

Thanks! I think that's reasonable.

<!-- gh-comment-id:2016621452 --> @TobiX commented on GitHub (Mar 23, 2024): Thanks! I think that's reasonable.
Author
Owner

@axllent commented on GitHub (Mar 30, 2024):

This has finally been released in v1.15.1 👍

Please confirm it works as you expect?

<!-- gh-comment-id:2028017131 --> @axllent commented on GitHub (Mar 30, 2024): This has finally been released in v1.15.1 :+1: Please confirm it works as you expect?
Author
Owner

@TobiX commented on GitHub (Apr 7, 2024):

Sorry for the late reply, can confirm it works now, see https://github.com/TobiX/test-renovate-stuff/pull/7

<!-- gh-comment-id:2041488239 --> @TobiX commented on GitHub (Apr 7, 2024): Sorry for the late reply, can confirm it works now, see https://github.com/TobiX/test-renovate-stuff/pull/7
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#175
No description provided.