diff --git a/public/v4/apps/maildev.yml b/public/v4/apps/maildev.yml index 945b6c4..54d061c 100644 --- a/public/v4/apps/maildev.yml +++ b/public/v4/apps/maildev.yml @@ -2,10 +2,16 @@ captainVersion: 4 services: $$cap_appname: image: maildev/maildev:$$cap_maildev_version + ports: + - $$cap_maildev_smtp_port:1025 volumes: - - /var/run/docker.sock:/var/run/docker.sock - $$cap_appname-data:/data restart: always + environment: + MAILDEV_SMTP_PORT: $$cap_maildev_smtp_port + MAILDEV_MAIL_DIRECTORY: /data + MAILDEV_WEB_USER: $$cap_maildev_web_user + MAILDEV_WEB_PASS: caproverExtra: containerHttpPort: '1080' caproverOneClickApp: @@ -15,6 +21,19 @@ caproverOneClickApp: defaultValue: 2.0.5 description: Check out their Docker page for the valid tags https://hub.docker.com/r/maildev/maildev/tags validRegex: /^([^\s^\/])+$/ + - id: $$cap_maildev_smtp_port + label: Maildev SMTP Port + defaultValue: 1025 + description: Maildev SMTP Port. Defaults to 1025. + validRegex: /^([^\s^\/])+$/ + - id: $$cap_maildev_web_user + label: Web User + defaultValue: admin + description: Maildev HTTP user for GUI. + - id: $$cap_maildev_web_pass + label: Web Pass + defaultValue: $$cap_gen_random_hex(4) + description: HTTP password for GUI. instructions: start: >- MailDev is a simple way to test your project's generated email during development, with an easy to use web interface that runs on your machine built on top of Node.js. @@ -26,9 +45,8 @@ caproverOneClickApp: After installation on CapRover, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 1080 to other CapRover apps . - Port Mapping: You need map port 1025 to the container application to get inbound mail work . - end: MailDev is a simple way to test your project's generated email during development - displayName: '' + end: Congrats! Your Maildev container is up and running. + displayName: 'Maildev' isOfficial: true description: MailDev is a simple way to test your project's generated email during development. documentation: Taken from https://hub.docker.com/r/maildev/maildev