In this exercise, you will take on the role of a DevOps engineer tasked with dockerizing a legacy application. The application has been running on a dedicated server for five years, and the goal is to transition it into a Docker container to leverage the benefits of containerization, such as scalability, consistency, and isolation.
Requirements
A legacy todo application is available on GitHub at https://github.com/tdevsin/docker-mastery. This application has been running for five years and now needs to be dockerized. You need to write a Dockerfile and ensure the application runs properly locally.
To successfully complete this exercise, you need to:
Create a Dockerfile that encapsulates all the dependencies and runtime environment needed for the application.
Ensure the application runs correctly inside the container without any changes to the legacy code.
Implement network settings that allow the containerized application to communicate with external systems as it did in its non-containerized state.