MCPcopy Index your code
hub / github.com/darthnorse/dockmon

github.com/darthnorse/dockmon @v2.4.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.4.4 ↗ · + Follow
6,987 symbols 24,879 edges 703 files 4,373 documented · 63%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DockMon

A comprehensive Docker container monitoring and management platform with real-time monitoring, intelligent auto-restart, multi-channel alerting, and complete event logging.

DockMon Docker Python React Go License Buy Me A Coffee

DockMon Dashboard

Key Features

  • Multi-Host Monitoring - Monitor containers across unlimited Docker hosts (local and remote)
  • Agent-Based Remote Monitoring - Lightweight Go agent for secure remote Docker monitoring without exposing Docker ports. Runs as a container or systemd service
  • Real-Time Dashboard - Drag-and-drop customizable widgets with WebSocket updates
  • Real-Time Statistics - Live CPU, memory, network metrics
  • Historical Stats - Optional time-series persistence for CPU, memory, and network metrics with retention up to 90 days. Browse historical charts in host and container modals via a time-range selector (5m / 1h / 24h / 7d / 30d / 60d / 90d). Disabled by default (privacy); opt in from Settings → System
  • Real-Time Container Logs - View logs from multiple containers simultaneously with live updates
  • Event Viewer - Comprehensive audit trail with filtering, search, and real-time updates
  • Intelligent Auto-Restart - Per-container auto-restart with configurable retry logic
  • Advanced Alerting - Discord, Slack, Telegram, Pushover, Gotify, SMTP with customizable templates
  • Container Tagging - Automatic tag derivation from Docker labels with user-defined tags
  • Bulk Operations - Start, stop, restart multiple containers simultaneously with progress tracking
  • Stack Management - Create, edit, and deploy Docker Compose stacks to local and remote hosts. Import existing stacks from running containers or host filesystems, with real-time deployment progress and layer-by-layer image pull tracking
  • Automatic Updates - Detect and execute container image updates on schedule
  • HTTP/HTTPS Health Checks - Custom endpoint monitoring with auto-restart on failure
  • Blackout Windows - Schedule maintenance periods to suppress alerts
  • Multi-User Support - Group-based RBAC with custom groups, granular capabilities, and user management
  • OIDC/SSO Integration - Single sign-on with any OIDC provider (Authentik, Keycloak, Okta, Entra ID, Auth0), automatic group sync, and optional user approval workflow
  • API Keys - Programmatic access with group-based permissions, optional IP restrictions, and expiration
  • Secure by Design - Session-based auth, rate limiting, mTLS for remote hosts, Alpine Linux base

Documentation

Support & Community

Technology Stack

Backend

  • Python 3.13 with FastAPI and async/await
  • Alpine Linux 3.x container base (reduced attack surface)
  • OpenSSL 3.x for modern cryptography
  • SQLAlchemy 2.0 with Alembic migrations
  • Go 1.23 stats service for real-time metrics streaming

Frontend

  • React 18.3 with TypeScript (strict mode, zero any)
  • Vite for fast development builds
  • TanStack Table for data tables
  • React Grid Layout for dashboard customization
  • Tailwind CSS for styling

Infrastructure

  • Multi-stage Docker build - Go stats + React frontend + Python backend
  • Supervisor for process management
  • Nginx reverse proxy with SSL/TLS
  • WebSocket for real-time updates
  • Health checks for all services

Upgrading from v1 to v2

Breaking Changes

  • Alert Rules: Old alert rules must be recreated using the new alert system
  • mTLS Certificates: Regenerate certificates due to Alpine's stricter OpenSSL 3.x requirements
  • Database Schema: Automatic one-time migration from v1.1.3 to v2.0.0

Data Preserved

  • ✅ Hosts and their configurations
  • ✅ Containers and container history
  • ✅ Event logs and audit trail
  • ✅ User accounts and preferences

Post-Upgrade Steps

  1. Regenerate mTLS certificates for remote hosts (see mTLS Setup Guide)
  2. Recreate alert rules using the new alert system
  3. Verify host connections after upgrade

See the Migration Guide for detailed instructions.

Contributing

Contributions are welcome! No CLA required - just submit a PR!

By contributing, you agree your contributions are licensed under the same BSL 1.1 terms as the project.

Development

Want to contribute code or run DockMon in development mode?

See Development Setup for: - Local development environment setup - Architecture overview - Running tests - Building from source

License

Business Source License 1.1 - see LICENSE file for full details.

What this means:

You can use DockMon: - For internal use in your company (any size) - For personal projects - To monitor your clients' infrastructure as part of consulting/MSP services - Fork, modify, and customize for your own use - Contribute improvements back to the project

You cannot: - Offer DockMon as a SaaS product to third parties - Embed DockMon in a commercial monitoring platform sold to others - Provide DockMon hosting as a standalone commercial service

Future Open Source:

After 2 years (Change Date: 2027-01-01), each version automatically converts to Apache License 2.0, becoming fully permissive open source with explicit patent grants.

Commercial Licensing:

Need to use DockMon in a way not permitted by BSL? Contact us for commercial licensing: - Open an Issue - Describe your use case - We'll work with you on licensing terms

Why BSL?

BSL protects the project from direct commercial competition while remaining contributor-friendly: - No CLAs required - standard GitHub workflow - Eventually becomes open source - builds community trust - Allows all legitimate uses - only blocks competitive SaaS offerings - Used successfully by Sentry, CockroachDB, MariaDB, and other major projects

Author

Created by darthnorse

Acknowledgments

This project has been developed with vibe coding and AI assistance using Claude Code. The codebase includes clean, well-documented code with proper error handling, comprehensive testing considerations, modern async/await patterns, robust database design, and production-ready deployment configurations.


If DockMon helps you, please consider giving it a star or supporting the project!

Buy Me A Coffee

DocumentationIssuesDiscussions

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 2,822
Function 2,771
Class 676
Interface 373
Route 213
Struct 126
FuncType 4
TypeAlias 2

Languages

Python67%
TypeScript20%
Go13%

Modules by API surface

backend/main.py243 symbols
backend/database.py139 symbols
backend/tests/unit/stacks/test_stack_storage.py83 symbols
backend/tests/unit/updates/test_update_availability.py74 symbols
agent/internal/docker/client.go74 symbols
backend/tests/unit/deployment_tests/test_agent_deployment.py69 symbols
backend/deployment/routes.py64 symbols
backend/tests/unit/test_enhanced_error_handling.py61 symbols
backend/tests/unit/validation/test_validation_logic.py54 symbols
backend/tests/unit/auth/test_oidc_group_mapping.py54 symbols
backend/deployment/host_connector.py52 symbols
backend/tests/unit/updates/test_version_comparison.py49 symbols

Datastores touched

dbDatabase · 1 repos

For agents

$ claude mcp add dockmon \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page