# Local Dev Stack with Make and Caddy

> Run full local stacks offline with automatic TLS via Caddy reverse proxy

This development setup pattern wraps your entire project stack and dependencies into a single 'make dev' command designed to work fully offline. Pairing it with Caddy as a local reverse proxy maps services to clean .localhost subdomains with automatic HTTPS.

## How it works

1) Wrap your whole stack in a \`make dev\` command: spins up the entire stack and dependencies locally, works offline. 2) Use Caddy as a reverse proxy to support \`.localhost\` domains with TLS — e.g. userjot.localhost shown in the screenshot. Author: @ImSh4yy, building userjot.com.

## What it is for

- Spin up multi-service application stacks with a single terminal command
- Develop web applications locally without an active internet connection
- Test HTTPS and cookie-based authentication using local TLS certificates
- Isolate microservices behind clean named subdomains instead of distinct port numbers

## Key points

- Single command execution via Makefile to orchestrate all local services
- Complete offline functionality for core application dependencies
- Caddy reverse proxy integration to route to .localhost domains
- Automatic local TLS certificate generation without manual trust setup
- Realistic browser-environment testing matching production-like routing

## Pricing

Free

## Details

- Type: Tip
- Category: [Development](https://xiry.app/topics/development.md)
- Open source: yes
- Platforms: Command line, macOS, Linux, Windows
- For: Full-stack software engineers and indie hackers
- Alternative to: ngrok, traefik, docker compose
- Tags: caddy, makefile, local development, https, devops, tls

## Why it was saved

- [@ImSh4yy, 30 May 2025](https://x.com/ImSh4yy/status/1928542726036844906): One command spins up everything, works without internet, and gives realistic HTTPS domains per service during development.

## Related

- [Antimetal](https://xiry.app/resources/antimetal): Autonomous production engineering platform that diagnoses, triages, and fixes runtime issues (Web app, Paid)
- [Cloudflare $5/mo Plan Inclusions](https://xiry.app/resources/cloudflare-5-mo-plan-inclusions): Resource breakdown of Cloudflare's $5/month Workers Paid plan limits and allowances (List, Paid)
- [Coolify](https://xiry.app/resources/coolify): Open-source, self-hosted platform alternative to Heroku, Vercel, and Railway (Web app, Freemium)
- [CrowdSec](https://xiry.app/resources/crowdsec): Open-source collaborative security engine and intrusion prevention system using crowdsourced threat data. (GitHub repo, Open source)
- [Deploy an Expo App to TestFlight with EAS](https://xiry.app/resources/deploy-an-expo-app-to-testflight-with-eas): Step-by-step workflow for deploying an Expo app to TestFlight using EAS. (Tip, Free)
- [Gitee](https://xiry.app/resources/gitee): China's largest Git-based code hosting, open-source community, and DevOps platform. (Website, Freemium)

Updated 11 October 2026. Page: https://xiry.app/resources/local-dev-stack-with-make-and-caddy

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
