-
Notifications
You must be signed in to change notification settings - Fork 0
Dockers
To implement the Inception project, you will need three services, each configured in a separate Docker container. These containers will have to be connected to a single isolated network, allowing exclusive communication between them. Communication with the outside world will be restricted to port 443 and exclusively through the container running the Nginx service.
The directory structure should be organised as specified in the project statement in order to improve the organisation and scalability of the project. Below is a representation of the suggested directory structure:
.
├── Makefile
├── secrets
│ ├── credentials.txt
│ ├── db_password.txt
│ └── db_root_password.txt
└── srcs
├── docker-compose.yml
├── .env
└── requirements
├── mariadb
│ ├── Dockerfile
│ ├── .dockerignore
│ └── conf
├── nginx
│ ├── Dockerfile
│ ├── .dockerignore
│ └── conf
└── wordpress
├── Dockerfile
├── .dockerignore
└── conf
This structure facilitates maintenance and allows the project to be scalable, clearly separating the components and their respective configurations.
For better control and visualisation of the organisation of the directory structure, we recommend installing the
tree
program on your virtual machine (VM).
-
Install Tree Command
-
Within the VM, open the terminal and update your existing package list with the command:
sudo apt update
-
Still in the terminal, install the
tree
package with the command:sudo apt install tree
-
In the terminal, check if the installation was successful:
tree --version
From now on, whenever you want to see the directory structure, you can run the
tree
ortree -a
command inside the parent directory.
-