---
title: Devops
category: product
entity_type: skill
price: $15
canonical: https://forgehouse.ai/skills/devops/
lang: en
hreflang_alt: https://forgehouse.ai/tr/skiller/devops/
last_updated: 2026-06-20
---

# Devops

> Infrastructure and deployment patterns for CI/CD pipelines, Docker, cloud platforms, and…

A hands-on toolkit of infrastructure and deployment patterns for CI/CD pipelines, Docker, cloud platforms, and operations. It covers deploying to Vercel, Railway, and Fly.io, multi-stage Dockerfiles, GitHub Actions workflows, database migrations, health checks, and structured logging. Gives you battle-tested, copy-ready configs to take an app from local to production reliably.

## Use cases
- Deploying a Next.js app to Vercel, Railway, or Fly.io
- Writing GitHub Actions CI and preview-deployment workflows
- Building a multi-stage, non-root Dockerfile and Docker Compose stack
- Running Prisma or Drizzle database migrations safely in CI
- Adding a health-check endpoint and structured logging
- Validating environment variables at build time with a typed schema

## Benefits
- Stand up a reliable deploy pipeline without reinventing the wiring
- Ship with confidence using preview URLs and automated CI gates
- Reduce deploy-time downtime with health checks and graceful degradation
- Catch config and security issues early with shift-left CI checks

## What’s included
- Deploy recipes for Vercel, Railway, and Fly.io with CLI commands
- GitHub Actions CI and PR preview workflow templates
- Multi-stage Next.js Dockerfile and Docker Compose with Postgres and Redis
- Prisma and Drizzle migration commands plus a CI migration job
- Health-check endpoint, structured logger, and Sentry error tracking setup
- Typed environment-variable validation and a pre/post-deployment checklist

## Who it’s for
Full-stack and backend developers who need ready-to-use infrastructure and deployment patterns to ship apps to production.

## How it runs
The end-to-end ship loop the skill runs to take an application from repo to monitored production:
1. Treats every platform setting as code: vercel.json, Dockerfile, docker-compose and CI workflows live in the repo and pass review, while environment variables are validated at build time with a Zod schema so a missing secret fails the build, not the runtime.
2. Builds the CI gate in fail-fast order: npm ci for deterministic installs, then typecheck, lint, test with coverage, build, and only a green chain on main unlocks the deploy job. Pull requests get their own preview deployment with the URL commented back.
3. Containerizes with a multi-stage Dockerfile: separate deps, builder and runner layers, standalone output copied into a minimal image that runs as a non-root user, never as root.
4. Runs database migrations as a pipeline step: prisma migrate deploy executes with the secret-injected DATABASE_URL before the new version takes traffic, so schema and code never drift apart in production.
5. Wires observability before declaring done: a /api/health endpoint that returns 503 when the database check fails, structured JSON logging for aggregators, and Sentry capturing exceptions with user and action context.
6. Closes with the deployment checklist: backup taken, migrations applied, health check green, critical flows tested live, error rates and performance watched after release, and a documented rollback path.

## FAQ
### I am not on Vercel. Does this cover Railway or Fly.io too?
Yes, it covers Vercel, Railway and Fly.io deployment paths plus Docker for anywhere else. The patterns are not tied to one host.

### Are the Dockerfiles real production setups or just hello-world examples?
The Dockerfile guidance is multi-stage and runs as a non-root user, the same shape you would ship to production. It is meant to harden and slim the image, not just get a container running.

### Does this run my infrastructure for me, or hand me the patterns?
It gives you the CI/CD, Docker and deploy patterns to implement and own. It does not become your ops team or watch production, that is a separate running concern.

## Price
$15, one-time, no subscription. VAT included.

Related guide: [How to run a marketing agency with AI automation](https://forgehouse.ai/guides/ai-marketing-agency-automation/)
