This project aimed to install Wordpress, MariaDB and Nginx to a different Docker containers and connect them together with a different ports
This project should be done on a VM. I used a debian 11
- Clone the repo
git clone https://github.com/divinepet/Inception
- Compile the project
make
If everything compiled good and makefile had no errors, you can go to elaronda.42.fr and see the Wordpress start page
- Makefile contains: creating a folders for our volumes: Wordpress and MariaDB, changing localhost to my own domen and build/launch docker-compose.
Commented lines in clean-rule allows you make your build too faster after you changed something in a project, using cache. - Docker-compose.yml split on three parts: volumes, services and network.
- Enviroments in .env needs to hide private data from configuration files
- In the Wordpress we are using a wordpress-cli for pre-install service before it will be launched. So after build we have an installed Wordpress
- Nginx using a TSL v1.2 and 1.3 cryptographic protocols. It appear in default config-file
- MariaDB creates a table and gets an admin-privileges to only one user with a password. So any different user can't get access to the DB