Welcome to the Docker Compose Exercise 3 - Connecting Containers! This exercise focuses on connecting containers created through Docker Compose to enable communication between applications.
A forward-thinking technology company is in the process of containerizing their application stack. They aim to streamline the local setup of services using Docker Compose.
They have developed two applications:
- The first application allows users to input their username and a movie name of their choice, which is then stored in a Redis database.
- The second application retrieves the movie associated with a given username from the Redis database.
Your task is to configure Docker Compose files to meet the following requirements:
- Do not Modify App1 Directory Files: Ensure that no modifications are made to the files within the app1/ directory.
- Connect App2 to Redis DB: App2 should be able to connect to the Redis database created as part of App1.
App1 should successfully send data to the Redis database.
App2 should be able to return the movie associated with the user entered in App1.
App2 should return a "user not found" response when a nonexistent user value is provided.