Monolithic backend application that handles auth, CRUD, and email
- Ensure that
local profile
is enabled - Run the command
http-server ./
in local S3 directory
- Run
mvn clean package
- Run
docker build -t trtlpost-monolith:latest .
- Run
docker run --env-file ./.env -p 5000:5000 trtlpost-monolith:latest
- You can also run
docker run --env-file ./.env -p 5000:5000 514832027284.dkr.ecr.us-east-1.amazonaws.com/trtlpost-monolith:latest
to run the aws image
- Open Dockerhub
- Run the deploy.sh script
- Check the deployment in ECS
- Create Load Balancer
- Create target group of type IP address and HTTP protocol port 5000
- Create security groups that allow inbound traffic
- Under Load Balancer Listener HTTP:80
- Create Fargate cluster
- If task definitions have not been created, create an S3 bucket for env vars, and define a task definition
- Auto assign IP and use the previously created load balancer (listening on port 5000) and target group
- In Route 53, use an A record to direct domain to our Load Balancer
- Request a certificate in Certificate Manager
- In our Load Balancer, go back to the Listeners tab and add port 443 HTTPS with our cert as the default certificate
- Setup RDS if not done already, import env variable file in private S3