Skip to content

Latest commit

 

History

History
332 lines (213 loc) · 6.15 KB

USER_DOC.md

File metadata and controls

332 lines (213 loc) · 6.15 KB

USER_DOC.md

User Documentation

Purpose

This document explains how to use, manage, and verify the Inception infrastructure as an end user or evaluator.


Overview

The Inception stack provides a complete web infrastructure built with Docker.

Available Services

Service Description


NGINX HTTPS reverse proxy and public entry point WordPress Website and content management system MariaDB Database used by WordPress Redis WordPress object cache FTP Remote access to WordPress files Adminer Web interface for MariaDB cAdvisor Container monitoring dashboard Static Website Additional static web content


Starting the Project

From the repository root:

make

This command builds the Docker images and starts the infrastructure.

You can also use:

make up

Stopping the Project

To stop the containers:

make down

To stop and remove all containers, images, networks, and volumes (depending on your Makefile implementation):

make clean

Accessing the Website

Main Website

Open your browser and navigate to:

https://mlakhdar.42.fr

Example:

https://mlakhdar.42.fr

Make sure your /etc/hosts file contains:

127.0.0.1 mlakhdar.42.fr

Replace mlakhdar with your own 42 login if necessary.


WordPress Administration Panel

Access the WordPress dashboard:

https://mlakhdar.42.fr/wp-admin

Login using the administrator credentials defined in your .env file.


Adminer Access

Adminer allows database administration through the browser.

Example URL:

http://localhost:8080

If Adminer is exposed on a separate route or port in your implementation, use the appropriate address.

Use the following information:

  • System: MariaDB
  • Server: mariadb
  • Username: defined in .env
  • Password: defined in .env
  • Database: defined in .env

FTP Access

FTP allows direct access to WordPress files.

Example connection:

Host: mlakhdar.42.fr or localhost
Port: 21
Protocol: FTP
Encryption: Explicit FTP over TLS (if configured)
Username: defined in .env
Password: defined in .env

Recommended clients:

  • FileZilla
  • WinSCP
  • lftp

cAdvisor Monitoring

Access the monitoring interface to inspect running containers, CPU usage, memory usage, and network statistics.

http://localhost:8081

Static Website

the bonus static website is enabled, access it using the configured path or subdomain defined in the NGINX configuration.

https://mlakhdar.42.fr/portfolio

Credentials Management

All credentials are stored in the .env file.

Typical values include:

  • WordPress administrator username
  • WordPress administrator password
  • WordPress user credentials
  • MariaDB user and password
  • MariaDB root password
  • FTP credentials

Never commit .env files or secrets to Git.


Verifying Services

Check running containers

docker compose -f srcs/docker-compose.yml ps

Expected services:

  • nginx
  • wordpress
  • mariadb
  • redis
  • ftp
  • adminer
  • cadvisor

Check logs

All logs:

docker compose -f srcs/docker-compose.yml logs

Specific service:

docker compose -f srcs/docker-compose.yml logs nginx

Follow logs:

docker compose -f srcs/docker-compose.yml logs -f

Common Tasks

Restart a service

docker compose -f srcs/docker-compose.yml restart wordpress

Enter a container shell

docker compose -f srcs/docker-compose.yml exec wordpress bash

List volumes

docker volume ls

List networks

docker network ls

Troubleshooting

Website not accessible

Check:

  • NGINX container is running
  • Port 443 is exposed
  • /etc/hosts is configured correctly
  • TLS certificate was generated

WordPress setup page appears repeatedly

Check:

  • MariaDB is running
  • Database credentials are correct
  • WordPress volume permissions

502 Bad Gateway

Verify:

  • PHP-FPM is running
  • NGINX FastCGI configuration is correct

FTP cannot connect

Check:

  • FTP container status
  • Passive ports configuration
  • Firewall settings
  • User credentials

Redis cache not working

Verify:

  • Redis container is running
  • WordPress Redis plugin is enabled
  • Redis host is set to redis

Useful Commands

make
make up
make down
make clean
make re

Conclusion

This document is intended to help evaluators, administrators, and end users quickly understand how to operate the Inception infrastructure and verify that all services are functioning correctly.