{"id":28092484,"url":"https://github.com/alexwaha/dockdev","last_synced_at":"2026-03-06T15:32:03.511Z","repository":{"id":291055958,"uuid":"976439716","full_name":"AlexWaha/dockdev","owner":"AlexWaha","description":"🐳 CLI tool to create isolated Docker-based development environments with local domain access via NGINX reverse proxy. Designed for Windows + WSL2.","archived":false,"fork":false,"pushed_at":"2025-05-13T09:56:58.000Z","size":9442,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T13:17:38.586Z","etag":null,"topics":["cli","dev-environment","docker","docker-compose","go","local-development","nginx","reverse-proxy","windows","wsl2"],"latest_commit_sha":null,"homepage":"https://alexwaha.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexWaha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-05-02T05:36:17.000Z","updated_at":"2025-05-03T08:48:18.000Z","dependencies_parsed_at":"2025-05-02T06:40:04.060Z","dependency_job_id":null,"html_url":"https://github.com/AlexWaha/dockdev","commit_stats":null,"previous_names":["alexwaha/dockdev"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWaha%2Fdockdev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWaha%2Fdockdev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWaha%2Fdockdev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWaha%2Fdockdev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexWaha","download_url":"https://codeload.github.com/AlexWaha/dockdev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948510,"owners_count":21988962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","dev-environment","docker","docker-compose","go","local-development","nginx","reverse-proxy","windows","wsl2"],"created_at":"2025-05-13T13:17:44.870Z","updated_at":"2026-03-06T15:32:03.440Z","avatar_url":"https://github.com/AlexWaha.png","language":"Go","readme":"# 🚀 DockDev — Instant Docker Dev Domains\n\n\u003e ⚡️ DockDev is a fast CLI tool that helps you create isolated Docker-based development environments with reverse proxy and custom local domains. \n\u003e \n\u003e It lets you work locally in Windows + WSL with multiple projects — and access them in the browser using friendly domain names like http://app.local.\n\n![Docker](https://img.shields.io/badge/Docker-ready-blue)\n![Go](https://img.shields.io/badge/Built%20with-Go-informational)\n![WSL2](https://img.shields.io/badge/WSL2-supported-green)\n![License](https://img.shields.io/badge/license-MIT-lightgrey)\n\n---\n\n## 📦 What is DockDev?\n\n**DockDev** is a developer CLI utility written in Go that helps you instantly:\n\n✅ Features\n- 🔧 Spin up isolated Docker-based dev environments with NGINX and any containers like PHP, Redis etc.\n- 🌐 All traffic is routed through a shared reverse proxy (nginx-reverse-proxy) for seamless local domain support\n- 🛠 Assign static IPs via a shared user-defined Docker network (bridge mode)\n- 🌍 Access each project via clean local domains like http://app.local\n- 🗂 Automatically add the domain to your Windows hosts file\n- ⚙️ Reverse proxy configs are generated per-project and hot-reloaded or restarted as needed\n- 🗃️ Includes a shared MySQL container for all projects — connect via native MySQL GUI clients on Windows (e.g. TablePlus, DBeaver, DataGrip etc.)\n\n✅ Ideal for full-stack development inside **WSL2 + Docker Desktop** environments.\n\n---\n\n## 🛠 Installation \u0026 Build\n\n💡 You don't need to build it, use the ready-to-run script `dockerdev`\n\n1. Install [Go](https://go.dev/dl/)\n2. Clone the repository and enter the folder:\n\n```bash\ngit clone https://github.com/your-org/dockdev.git\ncd dockdev\n```\n\n3. Build the binary (choose based on your OS)::\n\n🪟 For Windows (CMD):\nRun `build.bat`\n\n\u003e This produces a Linux-compatible binary you can run inside WSL2 or Linux servers.\n\n---\n\n## ⚙️ Setup\n\n### Copy required files and folders:\n\n\u003e All from folder dist to your WSL\n\n- `.env`\n- `dockdev`\n- `templates`\n\n---\n## 💡 Before you start!\n\n\u003e If your index application folder is `public` or another, update `nginx.conf`\n\u003e\n\u003e For example: `root /var/www/html/public;`\n\u003e\n\u003e 1. You can update it before adding new project in `templates/nginx.conf.tmpl` for all projects\n\u003e \n\u003e 2. or after, directly in `domains/YOUR_DOMAIN/conf/nginx/default.conf` \n\u003e #### If #2 - Don't forget to remove and run project containers manually!\n\n\n## 🚀 Usage\n\n### ➕ Create a new domain/project\n\n#### Interactive:\n\n```bash\n./dockdev\n```\n\n#### Direct:\n\n```bash\n./dockdev app.local\n```\n\n🔧 It will:\n\n- Create `domains/app.local/`\n- Assign next free IP like `10.0.100.12`\n- Assign IP's for all project containers\n- Generate:\n  - `docker-compose.yml`\n  - `conf/nginx/default.conf`\n  - `app/index.html`\n  - reverse proxy config in `shared-services/sites`\n- Update:\n  - `.ipmap.env` \u003e This file just FYI\n  - `Windows hosts` file\n\n\u003e Your application must be in  `app` folder: `domains/YOUR_DOMAIN/app`\n---\n\n### 🗑 Remove a project\n\n```bash\n./dockdev rm app.local\n```\n\nYou'll be prompted:\n\n```\nAre you sure you want to delete domain 'app.local'? [y/N]\n```\n\nDeletes:\n\n- Domain folder\n- Reverse proxy `.conf`\n- IP mapping entry\n- Hosts file entry\n- Drop all domain containers\n\n---\n\n## 🧱 Architecture\n\n- 🔧 `dockdev`: CLI manager (Go)\n- 📁 `templates/`: reusable template files \n\u003e You can extend docker-compose.yml.tmpl with your containers\n- 🌍 `shared-services/`: reverse proxy \u0026 shared Mysql DB\n- 🛠 `.ipmap.env`\n\u003e📘 Reference file for developers, to track which containers was assigned to which IP\n- 🔌 All containers in one shared Docker `bridge` network\n\n---\n\n## ✅ Platform Compatibility\n\n| Platform              | Supported |\n|-----------------------|-----------|\n| ✅ Windows 10/11 + WSL | ✔️ Recommended |\n\n---\n\nAll routed via NGINX with shared IP space and automatic DNS mapping.\n\n---\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwaha%2Fdockdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexwaha%2Fdockdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwaha%2Fdockdev/lists"}