AI-powered Docker assistant. No configuration needed.
stackai analyzes your project, generates an optimized Dockerfile and docker-compose, and debugs your containers using a local AI model — all in a single command.
pip install stackai-cli
stackai debugrequires Ollama running locally withollama pull llama3.
cd my-project
stackai init🔍 Analyzing project...
✅ Stack detected: python / fastapi + postgres + redis
⚙️ Generating Docker files...
✅ Dockerfile created
✅ .dockerignore created
✅ docker-compose.yaml created
🚀 Ready! Run: docker compose up -d
stackai scan📦 Stack detected:
Language : python
Framework : fastapi
Port : 8000
Services : postgres, redis
Python ver. : 3.11
stackai debug my-container📋 Latest logs:
─────────────────────────────────────────
Error: could not connect to postgres...
─────────────────────────────────────────
🤖 Running AI analysis...
💡 Analysis:
1. PROBLEM : The app cannot connect to PostgreSQL
2. CAUSE : The postgres container is not ready when the app starts
3. FIX : Add `depends_on: [postgres]` in your docker-compose.yaml
| Language | Detected Frameworks |
|---|---|
| Python | FastAPI, Flask, Django, generic |
| Node.js | Express, Next.js, Nuxt.js, React |
| Java | Spring Boot (Maven / Gradle) |
| Go | generic |
postgres · redis · mongodb · mysql · elasticsearch
- Python 3.10+
- Docker installed and running
- Ollama +
ollama pull llama3(only forstackai debug)
Pull requests are welcome. For major changes, please open an issue first.
MIT © El Mehdi Boutahar