# asmaebouanine/inception architecture

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

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

## Overview

Inception is a Docker Compose infrastructure for serving a WordPress site: external HTTPS traffic enters through NGINX, is passed to WordPress/PHP-FPM, and WordPress uses MariaDB. The documented setup also includes service initialization, private networking, persistent data, and Docker secrets. Relationships below rely on the README; source excerpts were not provided, so implementation-level calls and configuration details are not inferred.

Main entry points: [`srcs/docker-compose.yml`](https://github.com/asmaebouanine/inception/blob/main/srcs/docker-compose.yml) (Compose infrastructure), [`srcs/requirements/wordpress/conf/www.conf`](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/wordpress/conf/www.conf) (WordPress / PHP-FPM), [`srcs/requirements/mariadb/conf/my.conf`](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/mariadb/conf/my.conf) (MariaDB), [`srcs/requirements/nginx/conf/nginx.conf`](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/nginx/conf/nginx.conf) (NGINX HTTPS)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge["Web entry"]
  node_nginx["NGINX HTTPS<br/>[nginx.conf]"]
  node_nginx_entry["NGINX entrypoint<br/>[entrypoint.sh]"]
end

subgraph group_app["Application"]
  node_wordpress["WordPress / PHP-FPM<br/>[www.conf]"]
  node_wp_setup["WordPress setup<br/>[setup.sh]"]
end

subgraph group_data["Database and persistence"]
  node_mariadb[("MariaDB<br/>[my.conf]")]
  node_db_init["Database initialization<br/>[init.sh]"]
  node_persistent_data[("Persistent data<br/>[docker-compose.yml]")]
end

subgraph group_infra["Infrastructure setup"]
  node_compose["Compose infrastructure<br/>[docker-compose.yml]"]
  node_docker_secrets["Docker secrets<br/>[docker-compose.yml]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"HTTPS 443"| node_nginx
node_nginx -->|"FastCGI"| node_wordpress
node_wordpress -->|"SQL"| node_mariadb
node_wp_setup -->|"waits for"| node_mariadb
node_wp_setup -->|"installs"| node_wordpress
node_compose -->|"configures service"| node_nginx
node_compose -->|"configures service"| node_wordpress
node_compose -->|"configures service"| node_mariadb
node_compose -->|"configures volumes"| node_persistent_data
node_compose -->|"configures secrets"| node_docker_secrets
node_wordpress -->|"persists files"| node_persistent_data
node_mariadb -->|"persists database"| node_persistent_data

click node_nginx "https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/nginx/conf/nginx.conf"
click node_nginx_entry "https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/nginx/tools/entrypoint.sh"
click node_wordpress "https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/wordpress/conf/www.conf"
click node_wp_setup "https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/wordpress/tools/setup.sh"
click node_mariadb "https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/mariadb/conf/my.conf"
click node_db_init "https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/mariadb/tools/init.sh"
click node_persistent_data "https://github.com/asmaebouanine/inception/blob/main/srcs/docker-compose.yml"
click node_compose "https://github.com/asmaebouanine/inception/blob/main/srcs/docker-compose.yml"
click node_docker_secrets "https://github.com/asmaebouanine/inception/blob/main/srcs/docker-compose.yml"

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_nginx,node_nginx_entry toneBlue
class node_wordpress,node_wp_setup toneAmber
class node_mariadb,node_db_init,node_persistent_data toneMint
class node_compose,node_docker_secrets toneRose
class node_visitor toneIndigo
```

## Components

### Web entry

- [NGINX HTTPS](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/nginx/conf/nginx.conf): `srcs/requirements/nginx/conf/nginx.conf`
- [NGINX entrypoint](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/nginx/tools/entrypoint.sh): `srcs/requirements/nginx/tools/entrypoint.sh`

### Application

- [WordPress / PHP-FPM](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/wordpress/conf/www.conf): `srcs/requirements/wordpress/conf/www.conf`
- [WordPress setup](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/wordpress/tools/setup.sh): `srcs/requirements/wordpress/tools/setup.sh`

### Database and persistence

- [MariaDB](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/mariadb/conf/my.conf): `srcs/requirements/mariadb/conf/my.conf`
- [Database initialization](https://github.com/asmaebouanine/inception/blob/main/srcs/requirements/mariadb/tools/init.sh): `srcs/requirements/mariadb/tools/init.sh`
- [Persistent data](https://github.com/asmaebouanine/inception/blob/main/srcs/docker-compose.yml): `srcs/docker-compose.yml`

### Infrastructure setup

- [Compose infrastructure](https://github.com/asmaebouanine/inception/blob/main/srcs/docker-compose.yml): `srcs/docker-compose.yml`
- [Docker secrets](https://github.com/asmaebouanine/inception/blob/main/srcs/docker-compose.yml): `srcs/docker-compose.yml`

### Other components

- **Site visitor**

## Connections

- Site visitor → NGINX HTTPS: HTTPS 443 (evidence: `README.md`)
- NGINX HTTPS → WordPress / PHP-FPM: FastCGI (evidence: `README.md`)
- WordPress / PHP-FPM → MariaDB: SQL (evidence: `README.md`)
- WordPress setup → MariaDB: waits for (evidence: `README.md`)
- WordPress setup → WordPress / PHP-FPM: installs (evidence: `README.md`)
- Compose infrastructure → NGINX HTTPS: configures service (evidence: `README.md`)
- Compose infrastructure → WordPress / PHP-FPM: configures service (evidence: `README.md`)
- Compose infrastructure → MariaDB: configures service (evidence: `README.md`)
- Compose infrastructure → Persistent data: configures volumes (evidence: `README.md`)
- Compose infrastructure → Docker secrets: configures secrets (evidence: `README.md`)
- WordPress / PHP-FPM → Persistent data: persists files (evidence: `README.md`)
- MariaDB → Persistent data: persists database (evidence: `README.md`)
