Skip to content

Jonhvmp/docker-pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

34 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Docker Pilot ๐Ÿณ

Docker Pilot Cover

A powerful and scalable npm library for managing Docker applications of any size.

npm version TypeScript Docker License: ISC

๐Ÿ“š Complete Documentation โ€ข ๐Ÿš€ Quick Start โ€ข ๐ŸŽฎ Interactive Menu


โœจ What is Docker Pilot?

Docker Pilot is a modern TypeScript library that makes Docker container management simple, powerful, and fun. From small projects to enterprise systems, it provides an intuitive CLI and programmatic API.

๐ŸŽฏ Key Features

  • ๐ŸŽฎ Interactive Terminal Menu - Navigate commands with ease
  • ๐Ÿ“„ Smart Compose Management - Recursive discovery and analysis of docker-compose files
  • ๐ŸŽฏ Intelligent Project Detection - Auto-detect compose files with smart prioritization
  • ๐ŸŒ Multi-language Support - Portuguese & English with complete i18n
  • ๐Ÿ“ฆ TypeScript Native - Full type safety and IntelliSense
  • โšก Zero Configuration - Works out of the box
  • ๐Ÿ”Œ Plugin System - Extensible architecture
  • ๐Ÿ“Š Real-time Monitoring - Status, logs, and metrics
  • ๐Ÿ” Advanced File Analysis - Validate, analyze, and manage compose files

๐Ÿš€ Quick Start

Installation

# Install globally for CLI
npm install -g docker-pilot

# Or locally for your project
npm install docker-pilot

CLI Usage

# Start interactive menu
docker-pilot

# Or use direct commands
docker-pilot up              # Start all services
docker-pilot status          # Check status
docker-pilot logs app        # View logs
docker-pilot compose list    # List all compose files
docker-pilot compose analyze # Analyze compose structure
docker-pilot compose validate # Validate compose files

As Library

import { DockerPilot } from 'docker-pilot';

const pilot = new DockerPilot();
await pilot.initialize();
await pilot.up();              // Start services
const status = await pilot.status();  // Get status

๏ฟฝ What's New in v2.0.4

๐Ÿ“„ Enhanced Docker Compose Management

Docker Pilot now provides comprehensive docker-compose file management with intelligent discovery:

# List all compose files recursively
docker-pilot compose list --variants

# Analyze compose file structure
docker-pilot compose analyze docker-compose.yml

# Validate compose files
docker-pilot compose validate

# Find compose files in complex projects
docker-pilot compose find /path/to/project

Smart Discovery Features:

  • ๐Ÿ” Recursive Search: Finds compose files up to 6 levels deep
  • ๐ŸŽฏ Smart Prioritization: Identifies main files vs. environment variants
  • ๐Ÿ“Š Detailed Analysis: Shows services, ports, dependencies, and file info
  • ๐ŸŒ Environment Detection: Recognizes dev, prod, test variants automatically
  • โœ… Real-time Validation: Syntax and structure validation with detailed reports

๐ŸŽฏ Intelligent Project Auto-Detection

Starting Docker Pilot now automatically detects your project structure:

๐Ÿ” Searching for docker-compose files recursively...
๐Ÿ“ Search depth: 6 levels

Found 3 docker-compose files:

1. docker-compose.yml ๐ŸŽฏ๐Ÿ“
   ๐Ÿ“ 2.1 KB | ๐Ÿ“… 22/06/2025
   ๐Ÿ› ๏ธ 4 services: web, api, database, redis

2. backend/docker-compose.dev.yml (development) ๐Ÿ“‚(2)
   ๐Ÿ“ 1.8 KB | ๐Ÿ“… 21/06/2025
   ๐Ÿ› ๏ธ 2 services: api-dev, database-dev

๏ฟฝ๐ŸŽฎ Interactive Menu

Docker Pilot's standout feature is its interactive terminal menu that makes Docker management intuitive:

Interactive Menu Demo

$ docker-pilot

๐Ÿณ My Project - Docker Pilot v2.0 ๐Ÿณ

๐Ÿš€ Basic Commands:
1. Start all services
2. Stop all services
3. Restart all services
4. Rebuild and start all services
5. View logs of all services
6. View services status

๐Ÿ› ๏ธ Advanced Commands:
7. Open shell in service
8. Check services health
9. Monitor in real time
10. Update all images

โš™๏ธ Maintenance:
11. Clean unused resources
12. Deep clean
13. Show configuration

๐Ÿ”ง App:
14. Start app
15. Restart app
16. View app logs

Choose your option: โ– 

Language Support

Docker Pilot automatically detects your system language and provides full localization:

  • ๐Ÿ‡บ๐Ÿ‡ธ English - Complete interface
  • ๐Ÿ‡ง๐Ÿ‡ท Portuguรชs - Interface completa

Switch languages on-the-fly through the advanced settings menu!

๐Ÿ“‹ Requirements

  • Node.js >= 18.0.0
  • Docker >= 20.0.0
  • Docker Compose >= 2.0.4

๐ŸŽฏ Use Cases

๐Ÿ‘จโ€๐Ÿ’ป Developers

  • Quick project setup
  • Development workflow automation
  • Multi-service management
  • Interactive debugging

๐Ÿข Teams & Enterprise

  • Standardized Docker workflows
  • Multi-environment support
  • Automated backups
  • Performance monitoring

๐Ÿ”ง Configuration

Docker Pilot works with zero configuration, but you can customize it:

{
  "projectName": "My Amazing App",
  "language": "en", // or "pt-br"
  "services": {
    "app": {
      "port": 3000,
      "description": "Main application"
    },
    "database": {
      "port": 5432,
      "description": "PostgreSQL database"
    }
  }
}

๐ŸŒŸ Why Choose Docker Pilot?

๐Ÿณ Native Docker ๐ŸŽฎ Interactive ๐ŸŒ Global ๐Ÿš€ Modern
Built specifically for Docker workflows Terminal UI that's actually enjoyable Multi-language from day one TypeScript, ES6+, latest standards
๐Ÿ”Œ Extensible ๐Ÿ“Š Intelligent ๐Ÿ›ก๏ธ Reliable โšก Fast
Plugin system for custom needs Auto-detection and smart defaults Battle-tested error handling Optimized for performance

๐Ÿ“š Documentation

Complete documentation is available at: https://Jonhvmp.github.io/docker-pilot/

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

๐Ÿ“„ License

Docker Pilot is ISC licensed.


โฌ† Back to top

Made with โค๏ธ by Jonhvmp โ€ข JA Solutions Engine

๐ŸŒŸ If Docker Pilot helps you, please give it a star! ๐ŸŒŸ

About

A comprehensive Docker Compose management toolkit with interactive CLI and programmatic API

Topics

Resources

License

Stars

Watchers

Forks