# dust555/docker_examples architecture

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

- Interactive diagram: https://gitdiagram.com/dust555/docker_examples
- Repository: https://github.com/dust555/docker_examples

## Overview

This repository is a collection of Docker-oriented learning examples, not one integrated application. A representative user-to-result workflow is the Todo API: an HTTP client invokes CRUD endpoints, the controller maps request/response DTOs and delegates operations to a repository, which uses an EF Core context configured for MySQL. The tree also documents Python and car API examples, Docker hello-world programs, and an NLP sentiment-analysis train/deploy example. Those are separate demonstrations; the README is empty, and unsampled implementations are represented only where the tree supports them.

Main entry points: [`13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Controllers/TodoController.cs`](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Controllers/TodoController.cs) (Todo endpoints), [`13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Repositories/MysqlRepo.cs`](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Repositories/MysqlRepo.cs) (MySQL repository), [`13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Models/Todo.cs`](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Models/Todo.cs) (Todo entity), [`13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Program.cs`](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Program.cs) (API configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_todo["Todo API"]
  node_todo_api["Todo endpoints<br/>[TodoController.cs]"]
  node_todo_dtos["Todo DTOs<br/>[dto]"]
  node_todo_profile["Todo mappings<br/>[TodoProfile.cs]"]
  node_todo_model["Todo entity<br/>[Todo.cs]"]
  node_todo_repo["MySQL repository<br/>[MysqlRepo.cs]"]
  node_todo_context["Todo context<br/>[TodoContext.cs]"]
  node_todo_startup["API configuration<br/>[Program.cs]"]
  node_todo_db[("MySQL database")]
end

subgraph group_car["Car APIs"]
  node_car_api["Car endpoints<br/>[CarController.cs]"]
  node_car_repo["Car repositories<br/>[Repositories]"]
  node_car_mapping["Car mapping<br/>[CarProfile.cs]"]
end

subgraph group_web["Web Examples"]
  node_flask["Python web servers<br/>[webserver.py]"]
  node_car_mock_api["Mock car API<br/>[CarController.cs]"]
  node_hello_python["Python hello-world<br/>[HelloWorld.py]"]
  node_hello_dotnet[".NET hello-world<br/>[Program.cs]"]
end

subgraph group_nlp["Sentiment Analysis"]
  node_sentiment_train["Model training<br/>[train.py]"]
  node_sentiment_app["Sentiment deployment<br/>[app.py]"]
end

node_client(("HTTP client"))
node_car_client(("HTTP client"))

node_client -->|"calls CRUD routes"| node_todo_api
node_todo_api -->|"delegates CRUD"| node_todo_repo
node_todo_api -->|"maps API data"| node_todo_dtos
node_todo_api -->|"creates entities"| node_todo_model
node_todo_profile -->|"maps DTOs"| node_todo_dtos
node_todo_profile -->|"maps entity"| node_todo_model
node_todo_repo -->|"uses context"| node_todo_context
node_todo_repo -->|"reads and writes"| node_todo_model
node_todo_context -->|"stores entities"| node_todo_model
node_todo_startup -->|"registers repository"| node_todo_repo
node_todo_startup -->|"configures context"| node_todo_context
node_todo_startup -->|"configures MySQL"| node_todo_db
node_car_client -->|"calls car routes"| node_car_api
node_car_api -->|"delegates operations"| node_car_repo
node_sentiment_train -.->|"deploys model"| node_sentiment_app

click node_todo_api "https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Controllers/TodoController.cs"
click node_todo_dtos "https://github.com/dust555/docker_examples/tree/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/dto"
click node_todo_profile "https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Mappings/TodoProfile.cs"
click node_todo_model "https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Models/Todo.cs"
click node_todo_repo "https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Repositories/MysqlRepo.cs"
click node_todo_context "https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Contexts/TodoContext.cs"
click node_todo_startup "https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Program.cs"
click node_car_api "https://github.com/dust555/docker_examples/blob/master/12%20-%20DockerCompose%20ASP.NET%20api%20with%20mysql%20database/myshop_csproj/Controllers/CarController.cs"
click node_car_repo "https://github.com/dust555/docker_examples/tree/master/12%20-%20DockerCompose%20ASP.NET%20api%20with%20mysql%20database/myshop_csproj/Repositories"
click node_car_mapping "https://github.com/dust555/docker_examples/blob/master/12%20-%20DockerCompose%20ASP.NET%20api%20with%20mysql%20database/myshop_csproj/MappingProfiles/CarProfile.cs"
click node_flask "https://github.com/dust555/docker_examples/blob/master/05%20-%20Python%20webserver/webserver.py"
click node_car_mock_api "https://github.com/dust555/docker_examples/blob/master/06%20-%20ASP.NET%20Mock%20API%20webserver/CarApi/Controllers/CarController.cs"
click node_hello_python "https://github.com/dust555/docker_examples/blob/master/02%20-%20Creating%20HelloWorld%20Docker%20Image%20-%20Python/HelloWorld.py"
click node_hello_dotnet "https://github.com/dust555/docker_examples/blob/master/03%20-%20Creating%20HelloWorld%20Docker%20Image%20-%20C%23/HelloConsole/Program.cs"
click node_sentiment_train "https://github.com/dust555/docker_examples/blob/master/AI%20-%2001%20-%20NLP%20Sentiment%20Analysis/01%20-%20Train/train.py"
click node_sentiment_app "https://github.com/dust555/docker_examples/blob/master/AI%20-%2001%20-%20NLP%20Sentiment%20Analysis/03%20-%20Deploy/app.py"

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_todo_api,node_todo_dtos,node_todo_profile,node_todo_model,node_todo_repo,node_todo_context,node_todo_startup,node_todo_db,node_client,node_car_client toneBlue
class node_car_api,node_car_repo,node_car_mapping toneAmber
class node_flask,node_car_mock_api,node_hello_python,node_hello_dotnet toneMint
class node_sentiment_train,node_sentiment_app toneRose
```

## Components

### Todo API

- [Todo endpoints](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Controllers/TodoController.cs): `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Controllers/TodoController.cs`
- [Todo DTOs](https://github.com/dust555/docker_examples/tree/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/dto): `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/dto`
- [Todo mappings](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Mappings/TodoProfile.cs): `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Mappings/TodoProfile.cs`
- [Todo entity](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Models/Todo.cs): `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Models/Todo.cs`
- [MySQL repository](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Repositories/MysqlRepo.cs): `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Repositories/MysqlRepo.cs`
- [Todo context](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Contexts/TodoContext.cs): `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Contexts/TodoContext.cs`
- [API configuration](https://github.com/dust555/docker_examples/blob/master/13%20-%20DockerCompose%20ASP.NET%20EF%20Migrations%20dotnet%206/todo_aspnet/Program.cs): `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Program.cs`
- **MySQL database**

### Car APIs

- [Car endpoints](https://github.com/dust555/docker_examples/blob/master/12%20-%20DockerCompose%20ASP.NET%20api%20with%20mysql%20database/myshop_csproj/Controllers/CarController.cs): `12 - DockerCompose ASP.NET api with mysql database/myshop_csproj/Controllers/CarController.cs`
- [Car repositories](https://github.com/dust555/docker_examples/tree/master/12%20-%20DockerCompose%20ASP.NET%20api%20with%20mysql%20database/myshop_csproj/Repositories): `12 - DockerCompose ASP.NET api with mysql database/myshop_csproj/Repositories`
- [Car mapping](https://github.com/dust555/docker_examples/blob/master/12%20-%20DockerCompose%20ASP.NET%20api%20with%20mysql%20database/myshop_csproj/MappingProfiles/CarProfile.cs): `12 - DockerCompose ASP.NET api with mysql database/myshop_csproj/MappingProfiles/CarProfile.cs`

### Web Examples

- [Python web servers](https://github.com/dust555/docker_examples/blob/master/05%20-%20Python%20webserver/webserver.py): `05 - Python webserver/webserver.py`
- [Mock car API](https://github.com/dust555/docker_examples/blob/master/06%20-%20ASP.NET%20Mock%20API%20webserver/CarApi/Controllers/CarController.cs): `06 - ASP.NET Mock API webserver/CarApi/Controllers/CarController.cs`
- [Python hello-world](https://github.com/dust555/docker_examples/blob/master/02%20-%20Creating%20HelloWorld%20Docker%20Image%20-%20Python/HelloWorld.py): `02 - Creating HelloWorld Docker Image - Python/HelloWorld.py`
- [.NET hello-world](https://github.com/dust555/docker_examples/blob/master/03%20-%20Creating%20HelloWorld%20Docker%20Image%20-%20C%23/HelloConsole/Program.cs): `03 - Creating HelloWorld Docker Image - C#/HelloConsole/Program.cs`

### Sentiment Analysis

- [Model training](https://github.com/dust555/docker_examples/blob/master/AI%20-%2001%20-%20NLP%20Sentiment%20Analysis/01%20-%20Train/train.py): `AI - 01 - NLP Sentiment Analysis/01 - Train/train.py`
- [Sentiment deployment](https://github.com/dust555/docker_examples/blob/master/AI%20-%2001%20-%20NLP%20Sentiment%20Analysis/03%20-%20Deploy/app.py): `AI - 01 - NLP Sentiment Analysis/03 - Deploy/app.py`

### Other components

- **HTTP client**
- **HTTP client**

## Connections

- HTTP client → Todo endpoints: calls CRUD routes (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Controllers/TodoController.cs`)
- Todo endpoints → MySQL repository: delegates CRUD (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Controllers/TodoController.cs`)
- Todo endpoints → Todo DTOs: maps API data (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Controllers/TodoController.cs`)
- Todo endpoints → Todo entity: creates entities (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Controllers/TodoController.cs`)
- Todo mappings → Todo DTOs: maps DTOs (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Mappings/TodoProfile.cs`)
- Todo mappings → Todo entity: maps entity (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Mappings/TodoProfile.cs`)
- MySQL repository → Todo context: uses context (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Repositories/MysqlRepo.cs`)
- MySQL repository → Todo entity: reads and writes (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Repositories/MysqlRepo.cs`)
- Todo context → Todo entity: stores entities (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Contexts/TodoContext.cs`)
- API configuration → MySQL repository: registers repository (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Program.cs`)
- API configuration → Todo context: configures context (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Program.cs`)
- API configuration → MySQL database: configures MySQL (evidence: `13 - DockerCompose ASP.NET EF Migrations dotnet 6/todo_aspnet/Program.cs`)
- HTTP client → Car endpoints: calls car routes (evidence: `12 - DockerCompose ASP.NET api with mysql database/myshop_csproj/Controllers/CarController.cs`)
- Car endpoints → Car repositories: delegates operations (evidence: `12 - DockerCompose ASP.NET api with mysql database/myshop_csproj/Controllers/CarController.cs`)
- Model training → Sentiment deployment: deploys model
