HPort
HPort is a .NET-based tool and library for automating the management of Docker containers on Hetzner Cloud. It streamlines provisioning servers, deploying applications via Docker Compose, and managing their lifecycle.
Documentation
- Installation: Prerequisites and how to build the tool.
- Configuration: Setting up environment variables.
- CLI Reference: Detailed command usage.
- Library Usage: How to use HPort in your own C# code.
- Troubleshooting: Common issues and fixes.
- Developer Guide: Architecture and contribution guidelines.
Quick Start
-
Set your Token:
export HPORT_TOKEN="your-hetzner-api-token" -
Run the CLI:
# List containers (assuming you've built the project)
dotnet run --project src/ItsNameless.HPortCli -- container list
Features
- Automated Provisioning: Spins up
cx22,cpx11, etc., on demand. - Docker Compose: First-class support for standard compose deployments.
- Zero-Config Security: Automatically manages server credentials (stored locally).
- Internal Networking: Support for attaching servers to private networks.
License
Released under the MIT License.