Prerequisites
Before you begin, ensure that you have the following installed:- Docker
- Docker Compose (if using the Docker Compose setup)
Option 1: Production Docker Compose Setup
This setup includes PostgreSQL, Redis and the useSend application.- Download the Docker Compose file from the useSend repository: compose.yml
- Navigate to the directory containing the
compose.yml
file. - Create a
.env
file in the same directory. Copy the contents of.env.selfhost.example
- Run the following command to start the containers:
- Access the useSend application by visiting
http://localhost:3000
in your web browser.
Option 2: Standalone Docker Container
If you prefer to host the useSend application on your container provider of choice, you can use the pre-built Docker image from DockerHub or GitHub’s Package Registry. Note that you will need to provide your own database and SMTP host.- Pull the useSend Docker image:
- Run the Docker container, providing the necessary environment variables for your database and SMTP host:
- Access the useSend application by visiting the URL you provided in the
NEXTAUTH_URL
environment variable in your web browser.