Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

837 B
Raw Blame
# documentation: https://mailpit.axllent.org/docs/
# slogan: Email & SMTP testing tool with API for developers
# category: email
# tags: mailpit,email,testing,smtp
# logo: svgs/mailpit.svg
# port: 8025

services:
  mailpit:
    image: axllent/mailpit
    ports:
      - 1025:1025
    volumes:
      - "mailpit-data:/data"
      - type: bind
        source: ./htpasswd
        target: /data/htpasswd
        isDirectory: false
        content: ""
    environment:
      - SERVICE_URL_MAILPIT_8025
      - MP_MAX_MESSAGES=5000
      - MP_DATABASE=/data/mailpit.db
      - MP_SMTP_AUTH_ACCEPT_ANY=1
      - MP_SMTP_AUTH_ALLOW_INSECURE=1
      - MP_UI_AUTH_FILE=/data/htpasswd
    healthcheck:
      test:
        [
          "CMD",
          "/mailpit",
          "readyz",
        ]
      interval: 5s
      timeout: 20s
      retries: 10