# tailscale-dev/scaletail architecture

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

- Interactive diagram: https://gitdiagram.com/tailscale-dev/scaletail
- Repository: https://github.com/tailscale-dev/scaletail

## Overview

ScaleTail is a repository of ready-to-run Docker Compose stacks that connect self-hosted applications to a Tailnet. The main workflow is to choose a service, configure its environment, start its stack, and reach the application from a Tailnet device. The graph highlights that workflow and documented networking/security capabilities. This is a deployment-configuration repository, not the implementation of the hosted applications; stack internals are represented at the level documented by the README.

Main entry points: [`services`](https://github.com/tailscale-dev/scaletail/tree/main/services) (Network and security), [`services/uptime-kuma/compose.yaml`](https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/compose.yaml) (Compose stack), [`documentation/standard-setup.md`](https://github.com/tailscale-dev/scaletail/blob/main/documentation/standard-setup.md) (Standard setup), [`services/uptime-kuma/.env`](https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/.env) (Stack settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup"]
  node_catalog["Service catalog"]
  node_setup_guide["Standard setup<br/>[standard-setup.md]"]
end

subgraph group_stacks["Service stacks"]
  node_stack_env["Stack settings<br/>[.env]"]
  node_compose_stack["Compose stack<br/>[compose.yaml]"]
end

subgraph group_connectivity["Tailnet access"]
  node_tailscale_sidecar["Tailscale sidecar<br/>[compose.yaml]"]
  node_application["Self-hosted app<br/>[compose.yaml]"]
end

subgraph group_capabilities["Service capabilities"]
  node_network_services["Network and security"]
  node_dns_services["DNS services"]
  node_proxy_services["Proxy services"]
  node_identity_services["Identity services"]
  node_routing_services["Traffic routing"]
end

node_user(("Operator"))
node_docker["Docker host"]
node_tailnet{{"Tailnet"}}
node_tailnet_device(("Tailnet device"))

node_user -->|"chooses service"| node_catalog
node_user -->|"follows setup"| node_setup_guide
node_user -->|"sets secrets"| node_stack_env
node_user -->|"starts stack"| node_compose_stack
node_compose_stack -->|"runs on"| node_docker
node_compose_stack -->|"starts sidecar"| node_tailscale_sidecar
node_compose_stack -->|"starts app"| node_application
node_tailscale_sidecar -->|"joins tailnet"| node_tailnet
node_tailnet_device -->|"accesses app"| node_application
node_catalog -->|"includes category"| node_network_services
node_network_services -->|"includes DNS"| node_dns_services
node_network_services -->|"includes proxies"| node_proxy_services
node_network_services -->|"includes identity"| node_identity_services
node_network_services -->|"includes routing"| node_routing_services

click node_catalog "https://github.com/tailscale-dev/scaletail/tree/main/services"
click node_setup_guide "https://github.com/tailscale-dev/scaletail/blob/main/documentation/standard-setup.md"
click node_stack_env "https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/.env"
click node_compose_stack "https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/compose.yaml"
click node_tailscale_sidecar "https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/compose.yaml"
click node_application "https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/compose.yaml"
click node_network_services "https://github.com/tailscale-dev/scaletail/tree/main/services"
click node_dns_services "https://github.com/tailscale-dev/scaletail/tree/main/services"
click node_proxy_services "https://github.com/tailscale-dev/scaletail/tree/main/services"
click node_identity_services "https://github.com/tailscale-dev/scaletail/tree/main/services"
click node_routing_services "https://github.com/tailscale-dev/scaletail/tree/main/services"

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_catalog,node_setup_guide toneBlue
class node_stack_env,node_compose_stack toneAmber
class node_tailscale_sidecar,node_application toneMint
class node_network_services,node_dns_services,node_proxy_services,node_identity_services,node_routing_services toneRose
class node_user,node_docker,node_tailnet,node_tailnet_device toneIndigo
```

## Components

### Setup

- [Service catalog](https://github.com/tailscale-dev/scaletail/tree/main/services): `services`
- [Standard setup](https://github.com/tailscale-dev/scaletail/blob/main/documentation/standard-setup.md): `documentation/standard-setup.md`

### Service stacks

- [Stack settings](https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/.env): `services/uptime-kuma/.env`
- [Compose stack](https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/compose.yaml): `services/uptime-kuma/compose.yaml`

### Tailnet access

- [Tailscale sidecar](https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/compose.yaml): `services/uptime-kuma/compose.yaml`
- [Self-hosted app](https://github.com/tailscale-dev/scaletail/blob/main/services/uptime-kuma/compose.yaml): `services/uptime-kuma/compose.yaml`

### Service capabilities

- [Network and security](https://github.com/tailscale-dev/scaletail/tree/main/services): `services`
- [DNS services](https://github.com/tailscale-dev/scaletail/tree/main/services): `services`
- [Proxy services](https://github.com/tailscale-dev/scaletail/tree/main/services): `services`
- [Identity services](https://github.com/tailscale-dev/scaletail/tree/main/services): `services`
- [Traffic routing](https://github.com/tailscale-dev/scaletail/tree/main/services): `services`

### Other components

- **Operator**
- **Docker host**
- **Tailnet**
- **Tailnet device**

## Connections

- Operator → Service catalog: chooses service (evidence: `README.md`)
- Operator → Standard setup: follows setup (evidence: `README.md`)
- Operator → Stack settings: sets secrets (evidence: `README.md`)
- Operator → Compose stack: starts stack (evidence: `README.md`)
- Compose stack → Docker host: runs on (evidence: `README.md`)
- Compose stack → Tailscale sidecar: starts sidecar (evidence: `README.md`)
- Compose stack → Self-hosted app: starts app (evidence: `README.md`)
- Tailscale sidecar → Tailnet: joins tailnet (evidence: `README.md`)
- Tailnet device → Self-hosted app: accesses app (evidence: `README.md`)
- Service catalog → Network and security: includes category (evidence: `README.md`)
- Network and security → DNS services: includes DNS (evidence: `README.md`)
- Network and security → Proxy services: includes proxies (evidence: `README.md`)
- Network and security → Identity services: includes identity (evidence: `README.md`)
- Network and security → Traffic routing: includes routing (evidence: `README.md`)
