services: mailhog: image: mailhog/mailhog:latest container_name: mailhog ports: - "8025:8025" # MailHog web UI - "1025:1025" # SMTP server restart: unless-stopped