47 lines
1.9 KiB
Markdown
47 lines
1.9 KiB
Markdown
Software Requirements
|
|
|
|
Docker version 20.10.5 or higher
|
|
Docker Compose version 1.29.1 or higher
|
|
|
|
Application Description
|
|
|
|
The web application is a simple blogging platform that allows users to create, edit, and delete blog posts. The application uses a MySQL database to store blog post data and a httpd server.
|
|
|
|
|
|
The application uses the following virtual networks and named volumes:
|
|
|
|
Named volumes:
|
|
db_data: MySQL database data
|
|
web_data: WEB code data
|
|
|
|
|
|
The application consists of the following containers:
|
|
|
|
MySQL container: Used to store blog post data
|
|
httpd container: PRovide de front-end
|
|
|
|
|
|
To prepare the application, run the prepare-app.sh script. This script will perform the following tasks:
|
|
|
|
Compile Docker images for MySQL and HTTPD
|
|
Create virtual networks and named volumes for the application
|
|
Create and initialize the MySQL database
|
|
|
|
|
|
|
|
To run the application, run the start-app.sh script. This script will start all necessary containers, configure them to restart in the event of a failure, and display the port on which the application can be accessed.
|
|
Pausing and Deleting the Application
|
|
|
|
To pause the application, use the docker-compose pause command. To delete the application, run the stop-app.sh script. This script will stop all running containers and remove all associated resources.
|
|
Removing all Tracks of the Application
|
|
|
|
To remove all traces of the application, run the remove-app.sh script. This script will remove all containers, volumes, and networks created during the preparation and running of the application.
|
|
Docker Compose
|
|
|
|
If desired, the application can be deployed using Docker Compose. The docker-compose.yaml file contains the necessary configurations for the MySQLand HTTPD.
|
|
|
|
|
|
Conclusion
|
|
|
|
This document provides a detailed guide for deploying, running, and managing the web application using Docker. Please refer to the included scripts and configuration files for more information.
|