# andyyyy12345/sae-dolibarr architecture

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

- Interactive diagram: https://gitdiagram.com/andyyyy12345/sae-dolibarr
- Repository: https://github.com/andyyyy12345/sae-dolibarr

## Overview

This repository automates deployment of a Dolibarr ERP/CRM environment, initializes its company data, and supports database backup and restoration. The documented user workflow is to run install.sh, wait for Dolibarr to become available, configure the company country and import the supplied third-party records, then finish module activation through the Dolibarr web interface. The README documents the relationships shown here; source excerpts were not provided, so implementation details beyond those statements are omitted.

Main entry points: [`install.sh`](https://github.com/andyyyy12345/sae-dolibarr/blob/main/install.sh) (Install Orchestrator), [`docker-compose.yml`](https://github.com/andyyyy12345/sae-dolibarr/blob/main/docker-compose.yml) (Container Definition), [`import.csv.sh`](https://github.com/andyyyy12345/sae-dolibarr/blob/main/import.csv.sh) (CSV Importer), [`backup.sh`](https://github.com/andyyyy12345/sae-dolibarr/blob/main/backup.sh) (Database Backup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment"]
  node_install["Install Orchestrator<br/>[install.sh]"]
  node_compose["Container Definition<br/>[docker-compose.yml]"]
  node_dolibarr["Dolibarr Web App"]
  node_mariadb[("MariaDB")]
end

subgraph group_data["Data Initialization"]
  node_importer["CSV Importer<br/>[import.csv.sh]"]
  node_tiers["Third-Party Records<br/>[import_tiers.csv]"]
end

subgraph group_operations["Data Operations"]
  node_backup["Database Backup<br/>[backup.sh]"]
  node_restore["Database Restore<br/>[restore.sh]"]
end

node_operator(("Operator"))
node_browser(("Administrator Browser"))

node_operator -->|"runs"| node_install
node_install -->|"starts containers"| node_compose
node_compose -->|"defines service"| node_mariadb
node_compose -->|"defines service"| node_dolibarr
node_install -->|"sets country"| node_mariadb
node_install -->|"triggers import"| node_importer
node_importer -->|"reads CSV"| node_tiers
node_importer -->|"loads records"| node_mariadb
node_browser -->|"opens interface"| node_dolibarr
node_operator -->|"runs"| node_backup
node_backup -->|"exports database"| node_mariadb
node_operator -->|"runs"| node_restore
node_restore -->|"restores data"| node_mariadb

click node_install "https://github.com/andyyyy12345/sae-dolibarr/blob/main/install.sh"
click node_compose "https://github.com/andyyyy12345/sae-dolibarr/blob/main/docker-compose.yml"
click node_importer "https://github.com/andyyyy12345/sae-dolibarr/blob/main/import.csv.sh"
click node_tiers "https://github.com/andyyyy12345/sae-dolibarr/blob/main/data/import_tiers.csv"
click node_backup "https://github.com/andyyyy12345/sae-dolibarr/blob/main/backup.sh"
click node_restore "https://github.com/andyyyy12345/sae-dolibarr/blob/main/restore.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_install,node_compose,node_dolibarr,node_mariadb,node_browser toneBlue
class node_importer,node_tiers toneAmber
class node_backup,node_restore toneMint
class node_operator toneIndigo
```

## Components

### Deployment

- [Install Orchestrator](https://github.com/andyyyy12345/sae-dolibarr/blob/main/install.sh): `install.sh`
- [Container Definition](https://github.com/andyyyy12345/sae-dolibarr/blob/main/docker-compose.yml): `docker-compose.yml`
- **Dolibarr Web App**
- **MariaDB**

### Data Initialization

- [CSV Importer](https://github.com/andyyyy12345/sae-dolibarr/blob/main/import.csv.sh): `import.csv.sh`
- [Third-Party Records](https://github.com/andyyyy12345/sae-dolibarr/blob/main/data/import_tiers.csv): `data/import_tiers.csv`

### Data Operations

- [Database Backup](https://github.com/andyyyy12345/sae-dolibarr/blob/main/backup.sh): `backup.sh`
- [Database Restore](https://github.com/andyyyy12345/sae-dolibarr/blob/main/restore.sh): `restore.sh`

### Other components

- **Operator**
- **Administrator Browser**

## Connections

- Operator → Install Orchestrator: runs (evidence: `README.md`)
- Install Orchestrator → Container Definition: starts containers (evidence: `README.md`)
- Container Definition → MariaDB: defines service (evidence: `README.md`)
- Container Definition → Dolibarr Web App: defines service (evidence: `README.md`)
- Install Orchestrator → MariaDB: sets country (evidence: `README.md`)
- Install Orchestrator → CSV Importer: triggers import (evidence: `README.md`)
- CSV Importer → Third-Party Records: reads CSV (evidence: `README.md`)
- CSV Importer → MariaDB: loads records (evidence: `README.md`)
- Administrator Browser → Dolibarr Web App: opens interface (evidence: `README.md`)
- Operator → Database Backup: runs (evidence: `README.md`)
- Database Backup → MariaDB: exports database (evidence: `README.md`)
- Operator → Database Restore: runs (evidence: `README.md`)
- Database Restore → MariaDB: restores data (evidence: `README.md`)
