# torsatimes/docker-traefik architecture

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

- Interactive diagram: https://gitdiagram.com/torsatimes/docker-traefik
- Repository: https://github.com/torsatimes/docker-traefik

## Overview

This repository is a collection of Docker Compose deployment configurations and supporting examples for a multi-host media, home-automation, and web-server homelab. The documented workflow is to choose a stack for a host and desired services, configure its proxy and access-control options, then run the services; the README recommends bringing up Traefik and authentication before adding apps. It also documents media-management and Synology variants. No source excerpts were provided, so relationships below rely on README statements; exact service-to-compose membership is not asserted where the README does not specify it.

Main entry points: [`docker-compose-t2.yml`](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml) (Main Traefik stack), [`docker-compose-t2-web.yml`](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2-web.yml) (Web stack), [`appdata/traefik2/rules`](https://github.com/torsatimes/docker-traefik/tree/master/appdata/traefik2/rules) (Traefik routing), [`appdata/nginx/sites`](https://github.com/torsatimes/docker-traefik/tree/master/appdata/nginx/sites) (Nginx site configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_stacks["Deployment stacks"]
  node_basic["Basic media stack<br/>[docker-compose.yml]"]
  node_main["Main Traefik stack"]
  node_webstack["Web stack"]
  node_synology["Synology stack"]
  node_legacy["Legacy stacks"]
end

subgraph group_edge["Proxy and access"]
  node_traefik["Traefik routing"]
  node_auth["Forward authentication"]
end

subgraph group_operations["Media and operations"]
  node_media["Media services"]
  node_smart["Smart-home services"]
  node_data[("Databases and metrics")]
  node_mediafiles["Media file operations"]
  node_rclone["Cloud storage sync"]
  node_picard["Music library naming"]
end

subgraph group_web["Web hosting"]
  node_nginx["Nginx site configuration"]
  node_php["PHP runtime configuration"]
end

node_operator(("Homelab operator"))

node_operator -->|"chooses stack"| node_basic
node_operator -->|"chooses stack"| node_main
node_operator -->|"chooses stack"| node_webstack
node_operator -->|"chooses stack"| node_synology
node_operator -->|"may use"| node_legacy
node_main -.->|"configures routing"| node_traefik
node_traefik -.->|"may use authentication"| node_auth
node_webstack -.->|"configures sites"| node_nginx
node_nginx -.->|"may use PHP"| node_php
node_main -.->|"includes media apps"| node_media
node_main -.->|"includes home apps"| node_smart
node_main -.->|"includes data services"| node_data
node_operator -.->|"runs maintenance scripts"| node_mediafiles
node_operator -.->|"controls sync"| node_rclone
node_operator -.->|"configures naming"| node_picard

click node_basic "https://github.com/torsatimes/docker-traefik/blob/master/docker-compose.yml"
click node_main "https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml"
click node_webstack "https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2-web.yml"
click node_synology "https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2-synology.yml"
click node_legacy "https://github.com/torsatimes/docker-traefik/tree/master/archives"
click node_traefik "https://github.com/torsatimes/docker-traefik/tree/master/appdata/traefik2/rules"
click node_auth "https://github.com/torsatimes/docker-traefik/tree/master/appdata/authelia"
click node_nginx "https://github.com/torsatimes/docker-traefik/tree/master/appdata/nginx/sites"
click node_php "https://github.com/torsatimes/docker-traefik/tree/master/appdata/php/php7"
click node_media "https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml"
click node_smart "https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml"
click node_data "https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml"
click node_mediafiles "https://github.com/torsatimes/docker-traefik/tree/master/scripts/cloudserver"
click node_rclone "https://github.com/torsatimes/docker-traefik/blob/master/scripts/rclone-start.sh.example"
click node_picard "https://github.com/torsatimes/docker-traefik/blob/master/appdata/picard/filenaming_script.example"

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_basic,node_main,node_webstack,node_synology,node_legacy toneBlue
class node_traefik,node_auth toneAmber
class node_media,node_smart,node_data,node_mediafiles,node_rclone,node_picard toneMint
class node_nginx,node_php toneRose
class node_operator toneIndigo
```

## Components

### Deployment stacks

- [Basic media stack](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose.yml): `docker-compose.yml`
- [Main Traefik stack](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml): `docker-compose-t2.yml`
- [Web stack](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2-web.yml): `docker-compose-t2-web.yml`
- [Synology stack](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2-synology.yml): `docker-compose-t2-synology.yml`
- [Legacy stacks](https://github.com/torsatimes/docker-traefik/tree/master/archives): `archives`

### Proxy and access

- [Traefik routing](https://github.com/torsatimes/docker-traefik/tree/master/appdata/traefik2/rules): `appdata/traefik2/rules`
- [Forward authentication](https://github.com/torsatimes/docker-traefik/tree/master/appdata/authelia): `appdata/authelia`

### Media and operations

- [Media services](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml): `docker-compose-t2.yml`
- [Smart-home services](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml): `docker-compose-t2.yml`
- [Databases and metrics](https://github.com/torsatimes/docker-traefik/blob/master/docker-compose-t2.yml): `docker-compose-t2.yml`
- [Media file operations](https://github.com/torsatimes/docker-traefik/tree/master/scripts/cloudserver): `scripts/cloudserver`
- [Cloud storage sync](https://github.com/torsatimes/docker-traefik/blob/master/scripts/rclone-start.sh.example): `scripts/rclone-start.sh.example`
- [Music library naming](https://github.com/torsatimes/docker-traefik/blob/master/appdata/picard/filenaming_script.example): `appdata/picard/filenaming_script.example`

### Web hosting

- [Nginx site configuration](https://github.com/torsatimes/docker-traefik/tree/master/appdata/nginx/sites): `appdata/nginx/sites`
- [PHP runtime configuration](https://github.com/torsatimes/docker-traefik/tree/master/appdata/php/php7): `appdata/php/php7`

### Other components

- **Homelab operator**

## Connections

- Homelab operator → Basic media stack: chooses stack (evidence: `README.md`)
- Homelab operator → Main Traefik stack: chooses stack (evidence: `README.md`)
- Homelab operator → Web stack: chooses stack (evidence: `README.md`)
- Homelab operator → Synology stack: chooses stack (evidence: `README.md`)
- Homelab operator → Legacy stacks: may use (evidence: `README.md`)
- Main Traefik stack → Traefik routing: configures routing
- Traefik routing → Forward authentication: may use authentication
- Web stack → Nginx site configuration: configures sites
- Nginx site configuration → PHP runtime configuration: may use PHP
- Main Traefik stack → Media services: includes media apps
- Main Traefik stack → Smart-home services: includes home apps
- Main Traefik stack → Databases and metrics: includes data services
- Homelab operator → Media file operations: runs maintenance scripts
- Homelab operator → Cloud storage sync: controls sync
- Homelab operator → Music library naming: configures naming
