thien k phan

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
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.