Sign inSign up

ojmaster/contactform

By ojmaster

•Updated 11 months ago

Contact Form for ojmaster's CafeBlues applications made in nodejs and using nodemailer

Image
0

1.7K

ojmaster/contactform repository overview

⁠ContactForm

⁠

A simple contact form application that allows users to send emails to a specified recipient using nodemailer.

⁠Getting Started

To run the ContactForm app, you can use the following Docker command:

docker run [OPTIONS] ojmaster/contactform:latest

⁠Available Options

OptionDescriptionExample
--nameName of the container--name ContactForm
-vMount a volume to the container-v /your/path/to/favicon.ico:/app/public/images/favicon.ico
-pPort mapping-p 3000:3000 or -p xxxx:3000
-eSet environment variablesSee Environment Variables table
--env-fileUse a .env file to set environment variables--env-file ./.env
-dDetach from the container when starting
--restartSet the restart policy--restart unless-stopped

⁠Environment Variables

VariableDescriptionRequired
SMTP_HOSTSMTP server urltrue
SMTP_PORTSMTP server porttrue
SMTP_LOGINSMTP login credentialstrue
SMTP_API_KEYSMTP API keytrue
SENDER_EMAILEmail address of the sendertrue
RECIPIENT_EMAILEmail address of the recipienttrue
BASE_URLBase URL of the application (optional)Optional, only needed when using a reverse proxy to host the application on a subdirectory

⁠Example Command

Here is an example command that sets all the required environment variables and starts the container in detached mode with a restart policy:

docker run -p 9825:3000 --name ContactForm --env-file ./.env -d --restart unless-stopped ojmaster/contactform:latest

Note that you can replace the ./.env file with your own file containing the environment variables. Alternatively, you can set the environment variables individually using the -e flag.

Tag summary

Content type

Image

Digest

sha256:aa5041f63…

Size

382.2 MB

Last updated

11 months ago

docker pull ojmaster/contactform