# fbkeskin/42-inception architecture

> Architecture diagram of the GitHub repository fbkeskin/42-inception, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fbkeskin/42-inception
- Repository: https://github.com/fbkeskin/42-inception

## Overview

This repository defines a Docker-based WordPress deployment with Nginx and MariaDB. The intended user path is through the web server to WordPress, which is expected to use the database; Compose is the deployment entry point. The README only describes the project at a high level, and no source excerpts were provided, so service relationships are shown as unverified rather than asserted.

Main entry points: [`srcs/docker-compose.yml`](https://github.com/fbkeskin/42-inception/blob/master/srcs/docker-compose.yml) (Compose stack), [`srcs/requirements/nginx/conf/nginx.conf`](https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/nginx/conf/nginx.conf) (Nginx), [`srcs/requirements/wordpress/tools/wordpress.sh`](https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/wordpress/tools/wordpress.sh) (WordPress), [`srcs/requirements/mariadb/tools/mariadb.sh`](https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/mariadb/tools/mariadb.sh) (MariaDB)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment"]
  node_compose["Compose stack<br/>[docker-compose.yml]"]
end

subgraph group_web["Web tier"]
  node_nginx["Nginx<br/>[nginx.conf]"]
end

subgraph group_content["Content and data"]
  node_wordpress["WordPress<br/>[wordpress.sh]"]
  node_mariadb[("MariaDB<br/>[mariadb.sh]")]
end

node_visitor(("Site visitor"))

node_compose -.->|"configures service"| node_nginx
node_compose -.->|"configures service"| node_wordpress
node_compose -.->|"configures service"| node_mariadb
node_visitor -.->|"requests site"| node_nginx
node_nginx -.->|"forwards requests"| node_wordpress
node_wordpress -.->|"uses database"| node_mariadb

click node_compose "https://github.com/fbkeskin/42-inception/blob/master/srcs/docker-compose.yml"
click node_nginx "https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/nginx/conf/nginx.conf"
click node_wordpress "https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/wordpress/tools/wordpress.sh"
click node_mariadb "https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/mariadb/tools/mariadb.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_compose toneBlue
class node_nginx toneAmber
class node_wordpress,node_mariadb toneMint
class node_visitor toneIndigo
```

## Components

### Deployment

- [Compose stack](https://github.com/fbkeskin/42-inception/blob/master/srcs/docker-compose.yml): `srcs/docker-compose.yml`

### Web tier

- [Nginx](https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/nginx/conf/nginx.conf): `srcs/requirements/nginx/conf/nginx.conf`

### Content and data

- [WordPress](https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/wordpress/tools/wordpress.sh): `srcs/requirements/wordpress/tools/wordpress.sh`
- [MariaDB](https://github.com/fbkeskin/42-inception/blob/master/srcs/requirements/mariadb/tools/mariadb.sh): `srcs/requirements/mariadb/tools/mariadb.sh`

### Other components

- **Site visitor**

## Connections

- Compose stack → Nginx: configures service
- Compose stack → WordPress: configures service
- Compose stack → MariaDB: configures service
- Site visitor → Nginx: requests site
- Nginx → WordPress: forwards requests
- WordPress → MariaDB: uses database
