{"id":35184320,"url":"https://github.com/sacconazzo/containerize-me","last_synced_at":"2026-04-15T13:31:17.019Z","repository":{"id":330571276,"uuid":"1122698196","full_name":"sacconazzo/containerize-me","owner":"sacconazzo","description":"CLI to generate and manage Docker containers with docker compose","archived":false,"fork":false,"pushed_at":"2025-12-26T13:00:41.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-27T23:45:31.174Z","etag":null,"topics":["cli","container","developer-tools","docker","docker-compose","generator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sacconazzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-25T10:05:14.000Z","updated_at":"2025-12-26T13:43:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sacconazzo/containerize-me","commit_stats":null,"previous_names":["sacconazzo/containerize-me"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sacconazzo/containerize-me","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fcontainerize-me","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fcontainerize-me/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fcontainerize-me/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fcontainerize-me/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sacconazzo","download_url":"https://codeload.github.com/sacconazzo/containerize-me/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sacconazzo%2Fcontainerize-me/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","container","developer-tools","docker","docker-compose","generator"],"created_at":"2025-12-29T04:53:34.543Z","updated_at":"2026-04-15T13:31:17.014Z","avatar_url":"https://github.com/sacconazzo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐳 Container Manager CLI\n\nInteractive CLI to generate and manage Docker containers with docker-compose dynamically.\n\n## ✨ Features\n\n- 📋 **Interactive menu** - Simple navigation with menu selection\n- 🗂️ **Organized categories** - Services organized by category (Database, Cache, Message Queue, etc.)\n- ⚙️ **Guided configuration** - Username, password, and ports with default values\n- 💾 **Automatic persistent volumes** - Local data storage without manual configuration\n- 🚀 **Quick start** - Option to start the container immediately after configuration\n- 📦 **Reusable compose files** - Generated docker-compose.yml files saved for future use\n- ▶️ **Manage existing services** - Start, stop, restart, and view logs of configured containers\n\n## 🛠️ Supported Services\n\n### Database\n\n- MongoDB\n- PostgreSQL\n- MySQL\n- MariaDB\n- Microsoft SQL Server (MSSQL)\n\n### Cache\n\n- Redis\n- Memcached\n\n### Message Queue\n\n- RabbitMQ (with Management UI)\n- Apache Kafka (with Zookeeper)\n\n### Search Engine\n\n- Elasticsearch\n\n## 📦 Installation\n\n1. Clone the repository or download the files\n\n2. Create and activate a virtual environment (recommended):\n\n**On macOS/Linux:**\n\n```bash\n# Create virtual environment\npython3 -m venv .venv\n\n# Activate virtual environment\nsource .venv/bin/activate\n```\n\n**On Windows:**\n\n```bash\n# Create virtual environment\npython -m venv .venv\n\n# Activate virtual environment\n.venv\\Scripts\\activate\n```\n\n\u003e 💡 To deactivate the virtual environment later, simply run `deactivate`\n\n3. Install dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n4. Make sure you have Docker and docker compose installed:\n\n```bash\ndocker --version\ndocker compose version\n```\n\n## 🚀 Usage\n\nRun the CLI:\n\n```bash\npython cli.py\n```\n\n### Workflow\n\n#### Configure New Service\n\n1. **Select category** - Choose from Database, Cache, Message Queue, etc.\n2. **Select service** - Choose the specific service (e.g., MongoDB, PostgreSQL)\n3. **Configure parameters**:\n   - Username (with suggested default)\n   - Password (with suggested default)\n   - Database name (if applicable)\n   - Port (with suggested default)\n4. **Automatic start** - Choose whether to start the container immediately or later\n\n#### Manage Existing Services\n\nFrom the main menu, select \"Manage existing services\" to:\n\n- ▶️ **Start** a previously configured container\n- ⏹️ **Stop** a running container\n- 🔄 **Restart** a container\n- 📊 **View logs** of a container\n\n### Example\n\n```\n==================================================\n🐳  Container Manager CLI\n==================================================\n\n? What do you want to do?\n  ➕ Configure new service\n  ▶️  Manage existing services\n\n? Select a category: Database\n? Select a service from Database: PostgreSQL\n\n🚀 Configuration for PostgreSQL\n==================================================\n? Username (default: postgres): myuser\n? Password (default: postgres): ********\n? Database name (default: mydb): production_db\n? Port (default: 5432): 5432\n\n✅ Configuration completed!\n📦 Service name: postgresql\n💾 Persistent volumes: /path/to/volumes/postgresql\n\n? Do you want to start the container now? Yes\n\n🚀 Starting container...\n✅ Container started successfully!\n📄 Compose file saved at: /path/to/compose-files/postgresql-compose.yml\n```\n\n## 📁 Directory Structure\n\nAfter first use, the following will be created automatically:\n\n```\n.\n├── cli.py\n├── services.py\n├── requirements.txt\n├── volumes/                    # Persistent volumes (created automatically)\n│   ├── mongodb/\n│   ├── postgresql/\n│   └── ...\n└── compose-files/              # Generated docker-compose files (created automatically)\n    ├── mongodb-compose.yml\n    ├── postgresql-compose.yml\n    └── ...\n```\n\n## 🎯 Container Management\n\n### Using the CLI\n\nThe easiest way to manage your containers is through the CLI's built-in menu:\n\n```bash\npython cli.py\n# Select \"Manage existing services\" from the main menu\n```\n\nThis allows you to:\n\n- Start, stop, and restart containers\n- View logs\n- All with an interactive menu\n\n### Manual Commands\n\nYou can also use docker compose commands directly:\n\n#### Start a container\n\n```bash\ndocker compose -f compose-files/SERVICE-NAME-compose.yml up -d\n```\n\n### Stop a container\n\n```bash\ndocker compose -f compose-files/SERVICE-NAME-compose.yml down\n```\n\n### View logs\n\n```bash\ndocker compose -f compose-files/SERVICE-NAME-compose.yml logs -f\n```\n\n### Restart a container\n\n```bash\ndocker compose -f compose-files/SERVICE-NAME-compose.yml restart\n```\n\n## 💡 Tips\n\n- **Persistent volumes** are saved locally in the `volumes/` folder\n- **Docker-compose files** are saved in `compose-files/` and can be reused\n- **Ports** can be customized to avoid conflicts\n- You can **configure multiple instances** of the same service with different ports\n\n## 🔧 Customization\n\nTo add new services, edit the [services.py](services.py) file and add the configuration to the `SERVICES_CATALOG` dictionary.\n\nExample:\n\n```python\n\"Database\": {\n    \"NewService\": {\n        \"image\": \"image:tag\",\n        \"default_user\": \"admin\",\n        \"default_password\": \"password\",\n        \"default_database\": \"mydb\",\n        \"default_port\": 1234,\n        \"has_database\": True,\n        \"env_vars\": {\n            \"ENV_VAR\": \"username\"\n        },\n        \"volume_path\": \"/data\"\n    }\n}\n```\n\n## 📝 License\n\nMIT License - Feel free to use and modify as you wish!\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsacconazzo%2Fcontainerize-me","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsacconazzo%2Fcontainerize-me","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsacconazzo%2Fcontainerize-me/lists"}