How dougmaitelli/dockdash works
DockDash is a self-hosted dashboard for discovering and managing services and monitoring container updates, health, and resources. The principal workflow is to view or discover services, inspect their status and available updates, and manage them from the dashboard. The graph includes the client, API routes, persistence, monitoring, and container-runtime layers, plus documented discovery and management capabilities. Several feature paths are based on README descriptions because their implementation excerpts were not provided; those connections are marked unverified where needed.
Main entry points: services.ts Service routes · containerRuntimeService.ts Container runtime dispatch · serviceRepository.ts Service repository · updateCheckerService.ts Version update checks
Components 25
Dashboard client
- Web application
src/client/src/App.tsx - Service management
src/client/src/pages/Services.tsx - Service details
src/client/src/components/modals/ServiceDrawer.tsx - Health history view
src/client/src/components/HealthHistoryGraph.tsx - Topology canvas
src/client/src/components/dashboard/DashboardCanvas.tsx - Client API
src/client/src/services/api.ts
API and services
- HTTP server
src/server/index.ts - Service routes
src/server/routes/services.ts - Container controls
src/server/routes/container.ts - Container runtime dispatch
src/server/services/containerRuntime/containerRuntimeService.ts - Docker runtime
src/server/services/containerRuntime/dockerRuntime.ts - Kubernetes runtime
src/server/services/containerRuntime/kubernetesRuntime.ts
Monitoring and updates
- Health checks
src/server/services/healthCheckService.ts - Resource monitoring
src/server/services/resourceStatsService.ts - Version update checks
src/server/services/updateCheckerService.ts - Image registries
src/server/services/registryClient.ts - Release changelogs
src/server/services/changelogService.ts - Notifications
src/server/services/notificationService.ts
Discovery and topology
- Discovery routes
src/server/routes/discovery.ts - Network scanner
src/server/services/networkScanner.ts - Docker discovery
src/server/services/containerRuntime/dockerRuntime.ts
Persistent state
- Service repository
src/server/db/serviceRepository.ts - History repository
src/server/db/historyRepository.ts - SQLite database
src/server/db/connection.ts
Other components
- Operator
Connections 27
- Operator → Web application: uses
README.md - Web application → Service management: routes to
src/client/src/App.tsx - Service management → Service details: opens
src/client/src/pages/Services.tsx - Service details → Health history view: renders
- Operator → Topology canvas: arranges services
README.md - Service management → Client API: requests data
- HTTP server → Service routes: routes requests
src/server/index.ts - Service routes → Service repository: reads and writes
src/server/routes/services.ts - Service routes → Container runtime dispatch: adds source names
src/server/routes/services.ts - Service repository → SQLite database: persists services
src/server/db/serviceRepository.ts - History repository → SQLite database: persists history
src/server/db/historyRepository.ts - Health checks → History repository: records health
src/server/services/healthCheckService.ts - Health checks → Service repository: checks services
src/server/services/healthCheckService.ts - Resource monitoring → History repository: records resources
src/server/services/resourceStatsService.ts - Resource monitoring → Container runtime dispatch: collects metrics
src/server/services/resourceStatsService.ts - Container runtime dispatch → Docker runtime: dispatches to
src/server/services/containerRuntime/containerRuntimeService.ts - Container runtime dispatch → Kubernetes runtime: dispatches to
src/server/services/containerRuntime/containerRuntimeService.ts - Container controls → Container runtime dispatch: controls containers
- Service routes → Health checks: checks health
src/server/routes/services.ts - Service routes → Resource monitoring: gets metrics
src/server/routes/services.ts - Version update checks → Image registries: checks tags
README.md - Version update checks → Notifications: sends updates
README.md - Version update checks → Release changelogs: fetches notes
README.md - Operator → Discovery routes: starts discovery
README.md - Discovery routes → Network scanner: scans networks
- Discovery routes → Docker discovery: scans Docker hosts
- Docker discovery → Service repository: imports services