Server Setup
We're using AWS Lightsail ➜ $5 ➜ 1 GB Memory, 1 Core Processor, 40 GB SSD Disk, 2 TB Transfer
Create Server
Create a new VM that's at least 1GB RAM & 1vPU
Assign a static IP
Get updates with
sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove -y
Enable Digital Ocean metrics with
curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash
Install Docker with
sudo apt install docker.io docker-compose -y
Enable Autostart for Docker with
sudo systemctl start docker && sudo systemctl enable docker
Create a new directory with
mkdir home
at the root.Enter
cd home
Clone git repo
git clone https://github.com/yalefox/messenger-nats-yalewtf.git
Setup Dev/Production Server Environment
Navigate to the root directory.
Run
sudo nano .env
this is for the server.
POSTGRES_PASS: Make sure to set a strong password
AWS_REGION: Make sure the correct region is specified
AWS_POOL_ID: This needs to be specified
AWS_CLIENT_ID: AWS Cognito App Client ID in User Pool needs to be specified
Last updated
Was this helpful?