Setup Redis with Docker Compose
For small size team, it’s better to setup Redis on a EC2 instance instead of AWS Elasticache.
This is the pricing of Elasticache:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff4c77949-762e-4f0d-9980-a46db203b08d%2FUntitled.png?table=block&id=8fe1ea0a-174e-4049-bd8f-9447a075b424&cache=v2)
cache.t3.medium
price: 720 * 0.068$ = 50$. If you have Multi AZ the data will be available in different zone multiplied with the price. Personally I think it’s expensive.
Let’s host on EC2 with dirt cheap price:Pre-requisites: Ubuntu 20.0 AMI (latest), docker + docker engine, t5-large instance.
This is a an example of docker compose with redis + redis-insights.
docker-compose.yml
Profit!