Skip to content

Instantly share code, notes, and snippets.

@BoxedBrain
Created January 5, 2023 10:40
Show Gist options
  • Save BoxedBrain/7a14e2a0be35fd897d69c1399c9111b5 to your computer and use it in GitHub Desktop.
Save BoxedBrain/7a14e2a0be35fd897d69c1399c9111b5 to your computer and use it in GitHub Desktop.
Mailpit docker compose
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