update maildev.yml (#701)

* add MailDev to one-click-apps #695

* update maildev.yml
This commit is contained in:
Andre Kutianski 2022-08-15 02:18:45 -03:00 committed by GitHub
parent 2bf0c2a152
commit 85f739fb0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 4 deletions

View File

@ -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