Created
January 5, 2023 10:40
-
-
Save BoxedBrain/7a14e2a0be35fd897d69c1399c9111b5 to your computer and use it in GitHub Desktop.
Mailpit docker compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
mailpit-server: | |
image: axllent/mailpit:latest | |
container_name: mailpit-server | |
hostname: mailpit-server | |
restart: unless-stopped | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- ./data:/opt | |
networks: | |
- default | |
ports: | |
# Webinterface: | |
- "8025:8025" | |
# SMTP server: | |
- "1025:1025" | |
environment: | |
# Use a persistent data storage | |
- MP_DATA_FILE=/opt/mailpit.db | |
# Maximum number of messages to store | |
- MP_MAX_MESSAGES=100 | |
# Timezone for correct date/time formatting | |
- TZ=Europe/Berlin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment