rebrand to useSend (#210)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Docker Setup for Unsend
|
||||
# Docker Setup for useSend
|
||||
|
||||
The following guide will walk you through setting up Unsend using Docker. You can choose between a production setup using Docker Compose or a standalone container.
|
||||
The following guide will walk you through setting up useSend using Docker. You can choose between a production setup using Docker Compose or a standalone container.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -11,9 +11,9 @@ Before you begin, ensure that you have the following installed:
|
||||
|
||||
## Option 1: Production Docker Compose Setup
|
||||
|
||||
This setup includes PostgreSQL, Redis and the Unsend application.
|
||||
This setup includes PostgreSQL, Redis and the useSend application.
|
||||
|
||||
1. Download the Docker Compose file from the Unsend repository: [compose.yml](https://github.com/unsend-dev/unsend/blob/main/docker/prod/compose.yml)
|
||||
1. Download the Docker Compose file from the useSend repository: [compose.yml](https://github.com/usesend/usesend/blob/main/docker/prod/compose.yml)
|
||||
2. Navigate to the directory containing the `compose.yml` file.
|
||||
3. Create a `.env` file in the same directory. Copy the contents of `.env.selfhost.example`
|
||||
4. Run the following command to start the containers:
|
||||
@@ -22,24 +22,24 @@ This setup includes PostgreSQL, Redis and the Unsend application.
|
||||
docker-compose --env-file ./.env up -d
|
||||
```
|
||||
|
||||
This will start the PostgreSQL database, Redis and the Unsend application containers.
|
||||
This will start the PostgreSQL database, Redis and the useSend application containers.
|
||||
|
||||
5. Access the Unsend application by visiting `http://localhost:3000` in your web browser.
|
||||
5. Access the useSend application by visiting `http://localhost:3000` in your web browser.
|
||||
|
||||
## Option 2: Standalone Docker Container
|
||||
|
||||
If you prefer to host the Unsend 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.
|
||||
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.
|
||||
|
||||
1. Pull the Unsend Docker image:
|
||||
1. Pull the useSend Docker image:
|
||||
|
||||
```
|
||||
docker pull unsend/unsend
|
||||
docker pull usesend/usesend
|
||||
```
|
||||
|
||||
Or, if using GitHub's Package Registry:
|
||||
|
||||
```
|
||||
docker pull ghcr.io/unsend-dev/unsend
|
||||
docker pull ghcr.io/usesend/usesend
|
||||
```
|
||||
|
||||
2. Run the Docker container, providing the necessary environment variables for your database and SMTP host:
|
||||
@@ -56,13 +56,13 @@ docker run -d \
|
||||
-e AWS_DEFAULT_REGION="<your-next-private-aws-region>"
|
||||
-e GITHUB_ID="<your-next-private-github-id>"
|
||||
-e GITHUB_SECRET="<your-next-private-github-secret>"
|
||||
unsend/unsend
|
||||
usesend/usesend
|
||||
```
|
||||
|
||||
Replace the placeholders with your actual database and aws details.
|
||||
|
||||
1. Access the Unsend application by visiting the URL you provided in the `NEXTAUTH_URL` environment variable in your web browser.
|
||||
1. Access the useSend application by visiting the URL you provided in the `NEXTAUTH_URL` environment variable in your web browser.
|
||||
|
||||
## Success
|
||||
|
||||
You have now successfully set up Unsend using Docker. You can start sending emails efficiently. If you encounter any issues or have further questions, please refer to the official Unsend documentation or seek assistance from the community.
|
||||
You have now successfully set up useSend using Docker. You can start sending emails efficiently. If you encounter any issues or have further questions, please refer to the official useSend documentation or seek assistance from the community.
|
||||
|
@@ -1,9 +1,9 @@
|
||||
name: unsend-prod
|
||||
name: usesend-prod
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
container_name: unsend-db-prod
|
||||
container_name: usesend-db-prod
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER:?err}
|
||||
@@ -21,7 +21,7 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
container_name: unsend-redis-prod
|
||||
container_name: usesend-redis-prod
|
||||
restart: always
|
||||
# ports:
|
||||
# - "6379:6379"
|
||||
@@ -31,7 +31,7 @@ services:
|
||||
|
||||
minio:
|
||||
image: minio/minio
|
||||
container_name: unsend-storage-prod
|
||||
container_name: usesend-storage-prod
|
||||
ports:
|
||||
- 9002:9002
|
||||
- 9001:9001
|
||||
@@ -43,9 +43,9 @@ services:
|
||||
entrypoint: sh
|
||||
command: -c 'mkdir -p /data/unsend && minio server /data --console-address ":9001" --address ":9002"'
|
||||
|
||||
unsend:
|
||||
image: unsend/unsend:latest
|
||||
container_name: unsend
|
||||
usesend:
|
||||
image: usesend/usesend:latest
|
||||
container_name: usesend
|
||||
restart: always
|
||||
ports:
|
||||
- ${PORT:-3000}:${PORT:-3000}
|
||||
@@ -62,8 +62,8 @@ services:
|
||||
- REDIS_URL=${REDIS_URL:?err}
|
||||
- NEXT_PUBLIC_IS_CLOUD=${NEXT_PUBLIC_IS_CLOUD:-false}
|
||||
- API_RATE_LIMIT=${API_RATE_LIMIT:-1}
|
||||
- SMTP_HOST=${SMTP_HOST:-smtp.unsend.dev}
|
||||
- SMTP_USER=${SMTP_USER:-unsend}
|
||||
- SMTP_HOST=${SMTP_HOST:-smtp.usesend.com}
|
||||
- SMTP_USER=${SMTP_USER:-usesend}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
Reference in New Issue
Block a user