[GH-ISSUE #95] Add volume mount for docker example #64

Closed
opened 2026-03-15 12:22:17 +03:00 by kerem · 1 comment
Owner

Originally created by @liayn on GitHub (Apr 20, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/95

The example to run the docker image is incomplete when it comes to authentication.

Currently the example reads like this:

docker run -d \
--name=mailpit \
--restart unless-stopped \
-e MP_DATA_FILE=/mailpit/mailpit.db \
-e MP_UI_AUTH_FILE=/mailpit/authfile \
-e TZ=Europe/London \
-p 8025:8025 \
-p 1025:1025 \
axllent/mailpit

But it lacks any means to actually provide the referenced /mailpit/authfile inside the container.

I think it should be extended to:

docker run -d \
--name=mailpit \
--restart unless-stopped \
-v some/path/to/authfile:/mailpit/authfile
-e MP_DATA_FILE=/mailpit/mailpit.db \
-e MP_UI_AUTH_FILE=/mailpit/authfile \
-e TZ=Europe/London \
-p 8025:8025 \
-p 1025:1025 \
axllent/mailpit

(or something similar)

Originally created by @liayn on GitHub (Apr 20, 2023). Original GitHub issue: https://github.com/axllent/mailpit/issues/95 The example to run the docker image is incomplete when it comes to authentication. Currently the example reads like this: ``` docker run -d \ --name=mailpit \ --restart unless-stopped \ -e MP_DATA_FILE=/mailpit/mailpit.db \ -e MP_UI_AUTH_FILE=/mailpit/authfile \ -e TZ=Europe/London \ -p 8025:8025 \ -p 1025:1025 \ axllent/mailpit ``` But it lacks any means to actually provide the referenced `/mailpit/authfile` inside the container. I think it should be extended to: ``` docker run -d \ --name=mailpit \ --restart unless-stopped \ -v some/path/to/authfile:/mailpit/authfile -e MP_DATA_FILE=/mailpit/mailpit.db \ -e MP_UI_AUTH_FILE=/mailpit/authfile \ -e TZ=Europe/London \ -p 8025:8025 \ -p 1025:1025 \ axllent/mailpit ``` (or something similar)
kerem closed this issue 2026-03-15 12:22:22 +03:00
Author
Owner

@axllent commented on GitHub (Apr 20, 2023):

You're absolutely right! Thanks, I've updated the wiki. Thank you.

<!-- gh-comment-id:1516885377 --> @axllent commented on GitHub (Apr 20, 2023): You're absolutely right! Thanks, I've updated the wiki. Thank you.
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#64
No description provided.