System administration by using Docker.
-
This project involves setting up a small infrastructure composed of several services using Docker Compose.
-
The Docker containers to be configured have certain rules: ◦ A total of three containers will be created: an nginx container, a wordpress container, and a mariadb container.
◦ A total of two Docker volumes will be created: a mariadb volume, a wordpress volume.
◦ A docker-network that establishes the connection between thee Docker containers.
◦ An nginx container that contains NGINX with TLSv1.3.
◦ A wordpress container that contains WordPress + php-fpm only without nginx.
◦ A mariadb container that contains MariaDB only without nginx.
◦ A mariadb volume that contains WordPress database.
◦ A wordpress volume that contains WordPress website files.
- Docker Engine
- Docker-compose
◦ Download Docker Compose and place it in the execution path with the namedocker-compose.
- This is the diagram representing the configuration of services:
- This is the sequence of communication between the web browser and the containers:
| Rules | Description |
|---|---|
| all | Create and run Docker containers, images, and volumes. |
| stop | Stop running Docker containers. |
| start | Start stopped Docker containers. |
| clean | Terminate created Docker containers. |
| fclean | Remove all created Docker containers, images, and volumes. |
| re | Recreate Docker containers, images, and volumes after removing them. |
