Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.35 KB

File metadata and controls

57 lines (41 loc) · 2.35 KB

Services that are provided by the stack:

    * NGINX
        Acts as a web server and reverse proxy. It handles HTTPS requests and forwards PHP files to the PHP-FPM service.
    * WordPress (PHP-FPM)
        Responsible for processing PHP files received from NGINX and running the WordPress application logic.
    * MariaDB 
        Serves as the database management system, storing all WordPress data.

Check that the services are running correctly.

    - Commandes You'll need are :
        * make                  :Builds all Docker images and starts the entire infrastructure
                                (NGINX, WordPress, and MariaDB) using Docker Compose

        * make re               :Rebuilds the project from scratch by stopping the containers,
                                rebuilding all images, and restarting the infrastructure.

        * make down             :Stops all running containers without removing images or volumes.   
        
        * make fclean           :Completely removes all containers, Docker images, networks, and
                                 volumes created by the project, ensuring a clean state.

        * docker ps             : to check if all the containers are running perfectly

        * docker exec -it bash : to enter a container

        * docker build -t <service name> : to build a specifique service (mariadb , nginx or wordpress)

Accessing the Website

1️⃣ Once the project is running, open your browser and go to:
    https://login.42.fr

2️⃣ The connection uses HTTPS.  
If you see a browser warning, it is because the certificate is self-signed.  
Click   **“Continue anyway”**.

You will reach the main WordPress homepage.

3️⃣ Logging into WordPress Admin

-> Admin panel: https://login.42.fr/wp-admin
    ->Use the login/password provided by your project owner.

Once logged in, you can:
    - Create posts and pages  
    - Install themes  
    - Manage plugins  
    - Edit your website  

Persisted Data

All your website data is **saved permanently**, even if the system restarts.
What is saved?
    - WordPress uploads (images, files, media)   
    - Pages and posts  
    - Database content  

You will **not** lose your website if Docker is restarted.