Skip to content

mgiovani/ai-arsenal / skills/docker-init

docker-init

Verified

Generates production-ready docker-compose.yml and Dockerfile(s) for a project by scanning its manifest files (package.json, pyproject.toml, Gemfile, go.mod, Cargo.toml) and source code for service dependencies (Postgres, MySQL, Redis, MongoDB, RabbitMQ, Kafka, Elasticsearch, MinIO, Mailhog, etc.), then emitting compose services with health checks, security hardening, resource limits, and non-root Dockerfiles. Use when the user asks to dockerize or containerize a project, add docker-compose, generate a Dockerfile, or set up local dev services in containers. Not for CI/CD pipeline configs (use ci-generate), database schema migrations (use db-migrate), or scanning/syncing environment variables and secrets (use env-setup).

FileKindSize
SKILL.mdskill md8.8 KB
evals/evals.jsonconfig3.7 KB
evals/trigger-eval.jsonconfig1.7 KB
references/service-catalog.mdmarkdown2.0 KB

references/service-catalog.md

View on GitHub
# Service Catalog

Load this when Phase 2 needs to map a detected dependency to a service, or
Phase 3 needs the health check command for a service not already shown inline
in SKILL.md.

## Dependency-to-service mapping

| Detected | Proposed Service | Default Image |
|----------|-----------------|---------------|
| `pg`, `psycopg`, `postgres` | PostgreSQL | `postgres:16-alpine` |
| `mysql`, `pymysql` | MySQL | `mysql:8.0` |
| `redis`, `ioredis` | Redis / Valkey | `redis:7-alpine` |
| `mongodb`, `pymongo` | MongoDB | `mongo:7` |
| `rabbitmq`, `pika`, `amqp` | RabbitMQ | `rabbitmq:3-management-alpine` |
| `kafka`, `confluent`, `kafkajs` | Kafka (KRaft, single node) | `apache/kafka:latest`, pin to a specific tag (e.g. `3.8.0`) before deploying to prod |
| `meilisearch` | Meilisearch | `getmeili/meilisearch:v1.9` |
| `elasticsearch` | Elasticsearch | `elasticsearch:8.15.0`, check https://www.elastic.co/downloads/elasticsearch for a newer 8.x patch before deploying |
| `celery`, `sidekiq` | Redis (queue backend) | `redis:7-alpine` |
| `mailhog`, `smtp`, `mailer` | Mailhog | `mailhog/mailhog:v1.0.1` |
| `minio`, `s3` | MinIO | `minio/minio:latest`, pin to a specific `RELEASE.*` tag before deploying to prod |

MinIO and Elasticsearch don't publish clean floating major-version tags the
way Postgres/Redis/Mongo do, so their default is either `latest` or a patch
pin, always accompanied by the pin/check comment shown above so it doesn't
rot silently in a generated file.

## Health check patterns per service

Drop the matching command straight into the service's `healthcheck.test` in `docker-compose.yml`. Most of these ship inside the image already, so no extra package install is needed.

| Service | Health Check |
|---------|-------------|
| Postgres | `pg_isready -U ${USER}` |
| MySQL | `mysqladmin ping -h localhost` |
| Redis | `redis-cli ping` |
| MongoDB | `mongosh --eval "db.adminCommand('ping')"` |
| RabbitMQ | `rabbitmq-diagnostics -q ping` |
| Kafka (KRaft) | `kafka-broker-api-versions.sh --bootstrap-server localhost:9092` |
| MinIO | `mc ready local` |
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall