agentleFS
VodouAIVodouAI/OS/skills/community/docker-compose-dev/SKILL.md

docker-compose-dev

Skill1 starsChanged 4 months agoApache-2.0View on GitHub

Comprehensive Docker Compose development workflow automation for containerized applications

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting any Docker work, always run the pre-flight check:

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docker Compose Development Workflow

Overview

This skill provides a complete Docker Compose development workflow, from initial setup through debugging and optimization. It handles common Docker development tasks efficiently using Vodou's parallel execution capabilities.

Pre-Flight Checklist

Before starting any Docker work, always run the pre-flight check:

./do "check docker daemon status disk-space available-ports memory-usage"

This parallel check ensures:

  • Docker daemon is running
  • Sufficient disk space (Docker images can be large)
  • Required ports are available
  • Adequate memory for containers

Core Workflows

1. New Project Setup

# Analyze project and generate appropriate Dockerfile and docker-compose.yml
./do "analyze project structure detect-framework suggest-dockerfile generate-compose-config"

# Verify generated files
./do "validate dockerfile lint-compose check-security-issues"

# Build and test
./do "docker build test-container check-logs"

2. Development Environment Setup

Hot Reload Configuration

# For Node.js/React/Vue
./do "setup docker volumes for hot-reload configure-webpack-watch"

# For Python/Django/Flask
./do "configure django-reload setup-volume-mounts"

# For any framework
./do "analyze framework setup-hot-reload-for-{framework}"

Environment Variables

# Generate .env template
./do "scan compose file create-env-template"

# Validate environment
./do "check env-vars validate-secrets scan-for-exposed-keys"

3. Container Management

Starting Services

# Smart startup with health checks
./do "docker compose up with-health-monitoring log-aggregation"

# Selective services
./do "start only database redis worker"

# With debugging
./do "start services with-debug-ports exposed"

Monitoring

# Comprehensive monitoring
./do "monitor containers cpu-usage memory-usage disk-io network-traffic"

# Log analysis
./do "aggregate logs from all-containers analyze-errors show-warnings"

# Health checks
./do "check container-health endpoint-status database-connections"

4. Common Issues & Solutions

Port Conflicts

# Detect and resolve
./do "find port-conflicts suggest-alternatives update-compose-file"

Volume Permissions

# Fix permission issues
./do "diagnose volume-permissions fix-ownership set-correct-modes"

Network Issues

# Debug connectivity
./do "test inter-container-networking check-dns trace-routes"

# Fix common issues
./do "recreate docker-network flush-dns restart-affected-containers"

Performance Issues

# Analyze performance
./do "profile containers identify-bottlenecks suggest-optimizations"

# Optimize resources
./do "tune memory-limits cpu-shares optimize-build-cache"

5. Database Management

Database Operations

# Backup before changes
./do "backup database-container to-local-volume with-timestamp"

# Migrations
./do "run database-migrations show-pending verify-success"

# Data seeding
./do "seed development-data maintain-referential-integrity"

6. Multi-Stage Builds

# Optimize image size
./do "analyze dockerfile suggest-multi-stage optimize-layers"

# Security scanning
./do "scan image-vulnerabilities check-base-image update-dependencies"

7. Debugging Workflows

Container Debugging

# Interactive debugging
./do "exec into-container install-debug-tools start-debug-session"

# Remote debugging setup
./do "expose debug-port configure-ide-connection"

Log Investigation

# Comprehensive log analysis
./do "collect logs from-all-containers filter-by-timestamp search-errors correlate-events"

Best Practices

1. Always Use Named Volumes

volumes:
  postgres_data:
    name: ${PROJECT_NAME}_postgres_data

2. Health Checks Are Essential

./do "add health-checks to all-services with-proper-intervals"

3. Resource Limits

./do "set memory-limits cpu-limits for-all-containers based-on-available-resources"

4. Security First

# Regular security scans
./do "scan docker-images for-vulnerabilities check-outdated-packages"

# Secrets management
./do "rotate secrets update-env-files restart-affected-services"

5. Build Optimization

# Optimize build times
./do "analyze build-cache suggest-cache-mounts optimize-layer-order"

Advanced Patterns

Docker Compose Override Files

# Development overrides
./do "create compose.override.yml for-local-development with-debug-settings"

# Production preparation
./do "create compose.prod.yml optimize-for-production remove-dev-dependencies"

Service Dependencies

# Manage startup order
./do "analyze service-dependencies optimize-startup-order add-wait-scripts"

Scaling Services

# Scale intelligently
./do "analyze load-patterns scale-services monitor-performance"

Troubleshooting Playbook

Container Won't Start

./do "check docker-logs validate-compose-syntax verify-image-exists check-port-availability"

Slow Performance

./do "analyze resource-usage check-build-context optimize-volumes review-network-mode"

Connection Issues

./do "verify network-configuration test-dns check-firewall inspect-iptables"

Quick Commands Reference

# Setup
./do "docker setup for [framework]"
./do "generate docker configs"

# Development
./do "start dev environment"
./do "watch logs for [service]"
./do "restart [service] with debug"

# Debugging
./do "debug container [name]"
./do "analyze docker issues"
./do "fix common docker problems"

# Maintenance
./do "cleanup docker artifacts"
./do "update all images"
./do "backup volumes"

# Monitoring
./do "docker health check"
./do "show resource usage"
./do "analyze performance"

Integration with CI/CD

# Prepare for CI/CD
./do "create dockerfile.ci optimize-for-ci-cache generate-build-script"

# Test CI locally
./do "simulate ci-build run-tests-in-container generate-reports"

Remember

Docker Compose development is about managing complexity. Use Vodou's parallel execution to handle multiple aspects simultaneously:

# The power move - do everything at once
./do "start services monitor-health watch-logs check-endpoints run-tests"

This skill helps you maintain development velocity while ensuring your containerized applications run smoothly and efficiently.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.