# danangelo6/codeigniter4-docker architecture

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

- Interactive diagram: https://gitdiagram.com/danangelo6/codeigniter4-docker
- Repository: https://github.com/danangelo6/codeigniter4-docker

## Overview

This repository packages a Docker-based CodeIgniter 4 development environment, letting developers run PHP and Apache without installing them locally. The documented workflow is to select a Compose image, mount a project directory, and start or stop the container. The repository also provides PHP-version-specific image definitions and Apache security, SSL, and virtual-host configuration. The README documents environment-variable capabilities, including app, session, database, cookie, encryption, honeypot, CSRF, and CSP settings. Source excerpts were unavailable, so relationships below are limited to those stated in the README.

Main entry points: [`env`](https://github.com/danangelo6/codeigniter4-docker/blob/master/env) (Environment file), [`docker-compose.yml`](https://github.com/danangelo6/codeigniter4-docker/blob/master/docker-compose.yml) (Compose setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Container launch"]
  node_compose["Compose setup<br/>[docker-compose.yml]"]
  node_project["CodeIgniter project"]
  node_container["Development container"]
end

subgraph group_runtime["Web runtime"]
  node_php74["PHP 7.4 image<br/>[Dockerfile-php7.4]"]
  node_php80["PHP 8.0 image<br/>[Dockerfile-php8.0]"]
  node_apache["Apache configuration<br/>[000-default.conf]"]
  node_security["Security configuration<br/>[security.conf]"]
  node_ssl["SSL configuration<br/>[ssl.conf]"]
  node_startup["Container startup<br/>[startScript.sh]"]
end

subgraph group_settings["Environment settings"]
  node_envfile["Environment file"]
  node_appsettings["App and session settings"]
  node_database["Database settings"]
  node_securitysettings["Security and CSP settings"]
  node_otherconfig["Cookie and feature settings"]
end

node_developer(("Developer"))

node_developer -->|"configures"| node_compose
node_developer -->|"mounts"| node_project
node_compose -->|"starts"| node_container
node_developer -->|"stops"| node_container
node_container -->|"regenerates optionally"| node_envfile
node_envfile -->|"sets"| node_appsettings
node_envfile -->|"sets"| node_database
node_envfile -->|"sets"| node_securitysettings
node_envfile -->|"sets"| node_otherconfig

click node_compose "https://github.com/danangelo6/codeigniter4-docker/blob/master/docker-compose.yml"
click node_php74 "https://github.com/danangelo6/codeigniter4-docker/blob/master/Dockerfile-php7.4"
click node_php80 "https://github.com/danangelo6/codeigniter4-docker/blob/master/Dockerfile-php8.0"
click node_apache "https://github.com/danangelo6/codeigniter4-docker/blob/master/asset/000-default.conf"
click node_security "https://github.com/danangelo6/codeigniter4-docker/blob/master/asset/security.conf"
click node_ssl "https://github.com/danangelo6/codeigniter4-docker/blob/master/asset/ssl.conf"
click node_startup "https://github.com/danangelo6/codeigniter4-docker/blob/master/startScript.sh"
click node_envfile "https://github.com/danangelo6/codeigniter4-docker/blob/master/env"
click node_appsettings "https://github.com/danangelo6/codeigniter4-docker/blob/master/env"
click node_database "https://github.com/danangelo6/codeigniter4-docker/blob/master/env"
click node_securitysettings "https://github.com/danangelo6/codeigniter4-docker/blob/master/env"
click node_otherconfig "https://github.com/danangelo6/codeigniter4-docker/blob/master/env"

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,node_project,node_container toneBlue
class node_php74,node_php80,node_apache,node_security,node_ssl,node_startup toneAmber
class node_envfile,node_appsettings,node_database,node_securitysettings,node_otherconfig toneMint
class node_developer toneIndigo
```

## Components

### Container launch

- [Compose setup](https://github.com/danangelo6/codeigniter4-docker/blob/master/docker-compose.yml): `docker-compose.yml`
- **CodeIgniter project**
- **Development container**

### Web runtime

- [PHP 7.4 image](https://github.com/danangelo6/codeigniter4-docker/blob/master/Dockerfile-php7.4): `Dockerfile-php7.4`
- [PHP 8.0 image](https://github.com/danangelo6/codeigniter4-docker/blob/master/Dockerfile-php8.0): `Dockerfile-php8.0`
- [Apache configuration](https://github.com/danangelo6/codeigniter4-docker/blob/master/asset/000-default.conf): `asset/000-default.conf`
- [Security configuration](https://github.com/danangelo6/codeigniter4-docker/blob/master/asset/security.conf): `asset/security.conf`
- [SSL configuration](https://github.com/danangelo6/codeigniter4-docker/blob/master/asset/ssl.conf): `asset/ssl.conf`
- [Container startup](https://github.com/danangelo6/codeigniter4-docker/blob/master/startScript.sh): `startScript.sh`

### Environment settings

- [Environment file](https://github.com/danangelo6/codeigniter4-docker/blob/master/env): `env`
- [App and session settings](https://github.com/danangelo6/codeigniter4-docker/blob/master/env): `env`
- [Database settings](https://github.com/danangelo6/codeigniter4-docker/blob/master/env): `env`
- [Security and CSP settings](https://github.com/danangelo6/codeigniter4-docker/blob/master/env): `env`
- [Cookie and feature settings](https://github.com/danangelo6/codeigniter4-docker/blob/master/env): `env`

### Other components

- **Developer**

## Connections

- Developer → Compose setup: configures (evidence: `README.md`)
- Developer → CodeIgniter project: mounts (evidence: `README.md`)
- Compose setup → Development container: starts (evidence: `README.md`)
- Developer → Development container: stops (evidence: `README.md`)
- Development container → Environment file: regenerates optionally (evidence: `README.md`)
- Environment file → App and session settings: sets (evidence: `README.md`)
- Environment file → Database settings: sets (evidence: `README.md`)
- Environment file → Security and CSP settings: sets (evidence: `README.md`)
- Environment file → Cookie and feature settings: sets (evidence: `README.md`)
