Setup Docker Containers
Setup comprehensive Docker containerization for development and production: $ARGUMENTS
Current Project State
- Application type: @package.json or @requirements.txt (detect Node.js, Python, etc.)
- Existing Docker: @Dockerfile or @docker-compose.yml (if exists)
- Dependencies: !
find . -name "package-lock.json" -o -name "poetry.lock" -o -name "Pipfile.lock" | wc -l
- Services needed: Database, cache, message queue detection from configs
Task
Implement production-ready Docker containerization with optimized builds and development workflows:
Environment Type: Use $ARGUMENTS to specify development, production, microservices, or Docker Compose setup
Containerization Strategy:
- Dockerfile Creation - Multi-stage builds, layer optimization, security best practices
- Development Workflow - Hot reloading, volume mounts, debugging capabilities
- Production Optimization - Image size reduction, security scanning, health checks
- Multi-Service Setup - Docker Compose, service discovery, networking configuration
- CI/CD Integration - Build automation, registry management, deployment pipelines
- Monitoring & Logs - Container observability, log aggregation, resource monitoring
Security Features: Non-root users, minimal base images, vulnerability scanning, secrets management.
Performance Optimization: Layer caching, build contexts, multi-platform builds, and resource constraints.
Output: Complete Docker setup with optimized containers, development workflows, production deployment, and comprehensive documentation.
1---2name: 1796-setup-docker-containers-dbcd5a893description: Setup Docker Containers4---56# Setup Docker Containers78Setup comprehensive Docker containerization for development and production: **$ARGUMENTS**910## Current Project State1112- Application type: @package.json or @requirements.txt (detect Node.js, Python, etc.)13- Existing Docker: @Dockerfile or @docker-compose.yml (if exists)14- Dependencies: !`find . -name "package-lock.json" -o -name "poetry.lock" -o -name "Pipfile.lock" | wc -l`15- Services needed: Database, cache, message queue detection from configs1617## Task1819Implement production-ready Docker containerization with optimized builds and development workflows:2021**Environment Type**: Use $ARGUMENTS to specify development, production, microservices, or Docker Compose setup2223**Containerization Strategy**:241. **Dockerfile Creation** - Multi-stage builds, layer optimization, security best practices252. **Development Workflow** - Hot reloading, volume mounts, debugging capabilities263. **Production Optimization** - Image size reduction, security scanning, health checks274. **Multi-Service Setup** - Docker Compose, service discovery, networking configuration285. **CI/CD Integration** - Build automation, registry management, deployment pipelines296. **Monitoring & Logs** - Container observability, log aggregation, resource monitoring3031**Security Features**: Non-root users, minimal base images, vulnerability scanning, secrets management.3233**Performance Optimization**: Layer caching, build contexts, multi-platform builds, and resource constraints.3435**Output**: Complete Docker setup with optimized containers, development workflows, production deployment, and comprehensive documentation.