nextnode-infra

Provision Hetzner VPS instances and deploy Docker Compose applications via Terraform.

2|Updated Aug 8, 2024
One-click install
npx skills add https://github.com/walid-mos/mac-config --skill nextnode-infra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextnode-infra
Source: https://github.com/walid-mos/mac-config/tree/main/claude/.claude/skills/nextnode-infra
Command: npx skills add https://github.com/walid-mos/mac-config --skill nextnode-infra

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the complex and error-prone process of provisioning, deploying, and managing cloud infrastructure for NextNode projects, ensuring consistency and reducing manual overhead.

Core Features & Use Cases

  • Automated Provisioning: Uses Terraform to set up Hetzner VPS instances and configure them with essential software like Docker and Caddy.
  • CI/CD Integration: Orchestrates full application deployment pipelines via GitHub Actions, from building Docker images to updating DNS and deploying to production.
  • Use Case: Deploy a new web application to production by running a single command, which will provision a new VPS if needed, configure DNS and SSL, build the Docker image, and deploy the application with zero downtime.

Quick Start

Use the nextnode-infra skill to provision a new VPS for the 'my-app' project in the 'production' environment.

Frequently Asked Questions about nextnode-infra

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate VPS provisioning and deployment with Terraform and Docker Compose?

Automated VPS provisioning and deployment uses Terraform to create Hetzner instances and Docker Compose to orchestrate application releases. This config-as-code approach provisions servers, configures DNS, and deploys containers with zero downtime via a single command.

How do I set up an automated CI/CD pipeline for Docker deployments to a VPS?

Set up automated CI/CD pipelines for Docker deployments using GitHub Actions to build images, update DNS records, and deploy to production VPS instances. This pipeline orchestration supports automated rollback capabilities to ensure reliable releases.

Can I manage DNS and SSL certificates automatically using Caddy and Cloudflare?

Managing DNS and SSL certificates automatically is supported using Caddy and Cloudflare. The infrastructure configuration integrates both tools during the deployment process to provision and renew SSL certificates while updating DNS records automatically.

What do I need to configure before provisioning Hetzner VPS instances with Terraform?

Before provisioning Hetzner VPS instances with Terraform, you need a specific SSH key for access and valid Cloudflare credentials. The config-as-code paradigm requires these environment prerequisites to provision servers and manage DNS correctly.

How does zero downtime deployment work with Docker Compose and Caddy?

Zero downtime deployment with Docker Compose and Caddy works by orchestrating container updates and routing traffic through the Caddy reverse proxy. The CI/CD pipeline builds new images, deploys them, and switches traffic without dropping active connections.

Why use a config-as-code approach for cloud infrastructure management?

Using a config-as-code approach for cloud infrastructure management ensures consistency and reduces manual overhead. By defining VPS provisioning, DNS, and deployment pipelines as code, you streamline complex operations and minimize human error during production releases.