feat: add Docker container management functionality

- Implement DockerHandler to handle API requests for listing Docker containers.
- Create DockerService to interact with Docker API and retrieve container information.
- Add routes for Docker container management in the API.
- Introduce frontend API integration for Docker container listing.
- Enhance ProxyHostForm to allow quick selection of Docker containers.
- Update Docker-related tests to ensure functionality and error handling.
- Modify Docker Compose files to enable Docker socket access for local and remote environments.
- Add TypeScript configurations for improved build processes.
This commit is contained in:
Wikid82
2025-11-20 21:27:02 -05:00
parent 8c67e656b9
commit 9f62a4a2df
27 changed files with 691 additions and 71 deletions

View File

@@ -74,6 +74,22 @@ Go to: **http://localhost:8080**
For more details, check out the [Docker Deployment Guide](DOCKER.md).
### 🔌 Connecting to Remote Servers (Optional)
**Want to see containers on OTHER servers?**
If you have apps running on a different computer (like a Raspberry Pi or a VPS) and want CPMP to see them automatically:
1. **Copy** the `docker-compose.remote.yml` file to that *other* computer.
2. **Run it** there: `docker compose -f docker-compose.remote.yml up -d`
3. **Connect** in CPMP:
* Go to "Add Proxy Host"
* Click "Remote Docker?"
* Type the address: `tcp://<IP-OF-OTHER-COMPUTER>:2375`
**⚠️ IMPORTANT SECURITY WARNING:**
Think of this like leaving your front door unlocked. **ONLY** do this if your computers are connected via a secure VPN (like **Tailscale** or **WireGuard**) or are on a private home network that strangers can't access. Never do this on a public server without a VPN!
---
## 🛠️ The Developer Way (If You Like Code)