Skip to content

Tutorial

Iva edited this page Aug 23, 2024 · 10 revisions

Mandatory Tutorial

In this step-by-step tutorial, you will be guided from the initial configuration to the completion of the project, ensuring that all mandatory requirements are met.

First, we'll begin by building a Virtual Machine (VM) that will serve as the primary host for the Inception project. This VM will provide the environment in which we'll configure each Docker service image, ensuring that all system components work together efficiently.

Next, we'll configure each Docker image individually for the essential services, including Nginx, MariaDB, and WordPress with PHP-FPM. Each service will be isolated within its own container, but all will be interconnected via an internal network, enabling secure and efficient communication between them.

Additionally, we'll automate the maintenance of these services using Docker Compose. This will ensure that all containers are efficiently managed and maintained with minimal manual intervention. To further streamline this process, the Docker Compose commands will be integrated into the Makefile, offering a simple and standardized way to execute commands, thereby enhancing both ease of use and consistency across the project.

To guarantee that the project adheres to the predefined standards, we'll incorporate several key refinements. External communication will be restricted to port 443, while internal communication will occur through predefined ports, ensuring a secure and organized flow of data between services.

We'll also establish persistent volumes to store critical data, preventing data loss in the event of a container restart. To protect sensitive information, environment variables will be employed to mask credentials and other confidential data. This will be managed through the creation of a temporary .env file, securely storing these variables during deployment.

By following these steps, you will ensure that your project is secure, reliable, and compliant with best practices in Docker and system administration.

⏮️ Previous
Next ⏭️

Clone this wiki locally