# ganapathyram-nandhagopal/frappe_docker architecture

> Architecture diagram of the GitHub repository ganapathyram-nandhagopal/frappe_docker, 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/ganapathyram-nandhagopal/frappe_docker
- Repository: https://github.com/ganapathyram-nandhagopal/frappe_docker

## Overview

Frappe Docker packages container images, Compose deployment configurations, and setup resources for running Frappe applications. The main user path is to start either the disposable demo or a production-oriented Compose setup, then operate the resulting deployment using the documented workflows. Custom image builds, development setup, and deployment variants are separate capabilities. The sampled installer shows Bench initialization and site creation; other runtime wiring is not sampled, so relationships beyond explicit README statements are omitted.

Main entry points: [`compose.yaml`](https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/compose.yaml) (Production Compose), [`development/installer.py`](https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/development/installer.py) (Bench and site installer), [`images`](https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/images) (Image definitions), [`pwd.yml`](https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/pwd.yml) (Disposable demo)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deploy["Deployment configurations"]
  node_demo["Disposable demo<br/>[pwd.yml]"]
  node_production["Production Compose<br/>[compose.yaml]"]
  node_overrides["Deployment variants"]
end

subgraph group_images["Container images"]
  node_image_defs["Image definitions"]
  node_runtime["Frappe application"]
end

subgraph group_setup["Setup and operations"]
  node_entrypoint["Container startup<br/>[main-entrypoint.sh]"]
  node_start["Core start script<br/>[start.sh]"]
  node_nginx["Nginx setup"]
  node_dev_installer["Bench and site installer<br/>[installer.py]"]
end

subgraph group_guides["Documentation"]
  node_docs["Deployment and operations guides"]
end

node_operator(("Deployment operator"))
node_bench["Frappe Bench"]

node_operator -->|"starts demo"| node_demo
node_operator -->|"deploys with"| node_production
node_operator -->|"consults"| node_docs
node_operator -.->|"runs setup"| node_dev_installer
node_image_defs -->|"packages"| node_runtime
node_dev_installer -->|"runs commands"| node_bench
node_production -.->|"supports variants"| node_overrides

click node_demo "https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/pwd.yml"
click node_production "https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/compose.yaml"
click node_overrides "https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/overrides"
click node_image_defs "https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/images"
click node_entrypoint "https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/resources/core/main-entrypoint.sh"
click node_start "https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/resources/core/start.sh"
click node_nginx "https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/resources/core/nginx"
click node_dev_installer "https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/development/installer.py"
click node_docs "https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/docs"

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_demo,node_production,node_overrides toneBlue
class node_image_defs,node_runtime toneAmber
class node_entrypoint,node_start,node_nginx,node_dev_installer toneMint
class node_docs toneRose
class node_operator,node_bench toneIndigo
```

## Components

### Deployment configurations

- [Disposable demo](https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/pwd.yml): `pwd.yml`
- [Production Compose](https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/compose.yaml): `compose.yaml`
- [Deployment variants](https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/overrides): `overrides`

### Container images

- [Image definitions](https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/images): `images`
- **Frappe application**

### Setup and operations

- [Container startup](https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/resources/core/main-entrypoint.sh): `resources/core/main-entrypoint.sh`
- [Core start script](https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/resources/core/start.sh): `resources/core/start.sh`
- [Nginx setup](https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/resources/core/nginx): `resources/core/nginx`
- [Bench and site installer](https://github.com/ganapathyram-nandhagopal/frappe_docker/blob/main/development/installer.py): `development/installer.py`

### Documentation

- [Deployment and operations guides](https://github.com/ganapathyram-nandhagopal/frappe_docker/tree/main/docs): `docs`

### Other components

- **Deployment operator**
- **Frappe Bench**

## Connections

- Deployment operator → Disposable demo: starts demo (evidence: `README.md`)
- Deployment operator → Production Compose: deploys with (evidence: `README.md`)
- Deployment operator → Deployment and operations guides: consults (evidence: `README.md`)
- Deployment operator → Bench and site installer: runs setup
- Image definitions → Frappe application: packages (evidence: `README.md`)
- Bench and site installer → Frappe Bench: runs commands (evidence: `development/installer.py`)
- Production Compose → Deployment variants: supports variants
