# jlesage/docker-makemkv architecture

> Architecture diagram of the GitHub repository jlesage/docker-makemkv, 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/jlesage/docker-makemkv
- Repository: https://github.com/jlesage/docker-makemkv

## Overview

This repository packages MakeMKV in a Docker container, exposing its graphical interface through a browser or VNC client and supporting automated disc ripping. The documented main flow is disc insertion, MakeMKV conversion, and writing MKV output; the tree also identifies startup, auto-ripper services, and hook configuration. The README excerpt documents user-facing capabilities, but does not show their implementation wiring, so those links are documented rather than inferred from source calls.

Main entry points: [`appdefs.yml`](https://github.com/jlesage/docker-makemkv/blob/master/appdefs.yml) (Remote desktop), [`src/makemkv`](https://github.com/jlesage/docker-makemkv/tree/master/src/makemkv) (MakeMKV), [`rootfs/opt/makemkv/bin/autodiscripper`](https://github.com/jlesage/docker-makemkv/blob/master/rootfs/opt/makemkv/bin/autodiscripper) (Automatic ripper), [`rootfs/startapp.sh`](https://github.com/jlesage/docker-makemkv/blob/master/rootfs/startapp.sh) (Application startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_container["Container runtime"]
  node_startup["Application startup<br/>[startapp.sh]"]
  node_appconfig["App configuration<br/>[appdefs.yml]"]
end

subgraph group_rip["Disc ripping"]
  node_makemkv["MakeMKV"]
  node_autorip["Automatic ripper"]
  node_ripservice["Ripper services<br/>[run]"]
  node_drive["Optical drive"]
  node_output[("MKV output")]
  node_hooks["Ripper hooks"]
end

subgraph group_desktop["Remote desktop"]
  node_desktop["Remote desktop<br/>[appdefs.yml]"]
  node_webtools["Web features<br/>[appdefs.yml]"]
end

node_user(("Container user"))
node_browser(("Web browser"))
node_vnc(("VNC client"))

node_user -->|"opens GUI"| node_browser
node_user -->|"connects via"| node_vnc
node_browser -->|"accesses"| node_desktop
node_vnc -->|"accesses"| node_desktop
node_desktop -.->|"runs GUI"| node_makemkv
node_desktop -->|"provides"| node_webtools
node_drive -->|"disc insertion"| node_autorip
node_ripservice -.->|"runs"| node_autorip
node_autorip -.->|"invokes"| node_makemkv
node_makemkv -->|"writes MKV"| node_output
node_startup -.->|"uses settings"| node_appconfig

click node_startup "https://github.com/jlesage/docker-makemkv/blob/master/rootfs/startapp.sh"
click node_appconfig "https://github.com/jlesage/docker-makemkv/blob/master/appdefs.yml"
click node_makemkv "https://github.com/jlesage/docker-makemkv/tree/master/src/makemkv"
click node_autorip "https://github.com/jlesage/docker-makemkv/blob/master/rootfs/opt/makemkv/bin/autodiscripper"
click node_ripservice "https://github.com/jlesage/docker-makemkv/blob/master/rootfs/etc/services.d/autodiscripper/run"
click node_hooks "https://github.com/jlesage/docker-makemkv/tree/master/rootfs/defaults/hooks"
click node_desktop "https://github.com/jlesage/docker-makemkv/blob/master/appdefs.yml"
click node_webtools "https://github.com/jlesage/docker-makemkv/blob/master/appdefs.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_startup,node_appconfig,node_user,node_browser,node_vnc toneBlue
class node_makemkv,node_autorip,node_ripservice,node_drive,node_output,node_hooks toneAmber
class node_desktop,node_webtools toneMint
```

## Components

### Container runtime

- [Application startup](https://github.com/jlesage/docker-makemkv/blob/master/rootfs/startapp.sh): `rootfs/startapp.sh`
- [App configuration](https://github.com/jlesage/docker-makemkv/blob/master/appdefs.yml): `appdefs.yml`

### Disc ripping

- [MakeMKV](https://github.com/jlesage/docker-makemkv/tree/master/src/makemkv): `src/makemkv`
- [Automatic ripper](https://github.com/jlesage/docker-makemkv/blob/master/rootfs/opt/makemkv/bin/autodiscripper): `rootfs/opt/makemkv/bin/autodiscripper`
- [Ripper services](https://github.com/jlesage/docker-makemkv/blob/master/rootfs/etc/services.d/autodiscripper/run): `rootfs/etc/services.d/autodiscripper/run`
- **Optical drive**
- **MKV output**
- [Ripper hooks](https://github.com/jlesage/docker-makemkv/tree/master/rootfs/defaults/hooks): `rootfs/defaults/hooks`

### Remote desktop

- [Remote desktop](https://github.com/jlesage/docker-makemkv/blob/master/appdefs.yml): `appdefs.yml`
- [Web features](https://github.com/jlesage/docker-makemkv/blob/master/appdefs.yml): `appdefs.yml`

### Other components

- **Container user**
- **Web browser**
- **VNC client**

## Connections

- Container user → Web browser: opens GUI (evidence: `README.md`)
- Container user → VNC client: connects via (evidence: `README.md`)
- Web browser → Remote desktop: accesses (evidence: `README.md`)
- VNC client → Remote desktop: accesses (evidence: `README.md`)
- Remote desktop → MakeMKV: runs GUI
- Remote desktop → Web features: provides (evidence: `README.md`)
- Optical drive → Automatic ripper: disc insertion (evidence: `README.md`)
- Ripper services → Automatic ripper: runs
- Automatic ripper → MakeMKV: invokes
- MakeMKV → MKV output: writes MKV (evidence: `README.md`)
- Application startup → App configuration: uses settings
