Redis is a key value pair in memory database. This is incredible fast for data retrieval. We can use Redis for cache and session storage. Magento 2 has an optional implementation of Redis for both cache and session storage which we can configure if required. In most of the production Magento 2 websites you will see the Redis integration. In this tutorial we will integrate Redis with docker compose for Magento 2.
In this tutorial, we will set up Magento 2 development environment on top of Docker. We will install a fresh Magento v2.4.5 on Docker. Assuming we have nothing yet, no code base no database, etc. Everything we will start from scratch on the docker container. We will prepare a docker-compose file for Magento 2 setup