Welcome to the Docker Beginner Assignments repository! This repository contains detailed solutions for various Docker assignments aimed at beginners. Each assignment focuses on different aspects of Docker usage, ranging from containerizing applications to orchestrating multi-container setups.
- Objective: Containerize a simple Python Flask application.
- Steps:
- Create a Python Flask application.
- Write a Dockerfile.
- Create a requirements.txt file.
- Build the Docker image.
- Run the Docker container.
- Test the Flask application.
- Objective: Containerize and run the Webanalyze application in multiple formats.
- Steps:
- Write a Dockerfile for Webanalyze.
- Run the Docker image.
- Capture container output/log into host filesystem.
- Run multiple instances for different websites using Docker Compose.
- Store application logs for multiple instances.
- Deploy in Docker Swarm stack.
- Objective: Create a Docker image for a development environment.
- Steps:
- Create a Dockerfile for the development environment.
- Use the Docker image for development instead of local machine dependencies.
- Objective: Create a multi-container application using Docker Compose.
- Steps:
- Define services, networks, and volumes in docker-compose.yml.
- Include different components (web server, database, caching layer) in separate containers.
- Configure intercommunication between containers and run the application.
- Objective: Containerize WordPress CMS using Docker.
- Steps:
- Use separate containers for WordPress application and database.
- Mount volumes for persistent storage of WordPress files and database data.
- Configure and run containers to host a functional WordPress site.
For detailed instructions on each assignment, please refer to the respective assignment folder in this repository.
If you have any improvements or additional assignments to suggest, feel free to open an issue or submit a pull request!
This repository is licensed under the MIT License.
Happy Dockerizing! π³β¨