compose-local-dev-stack

Orchestrate local multi-service Docker Compose environments with healthcheck-based dependency management.

9|3|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill compose-local-dev-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compose-local-dev-stack
Source: https://github.com/Sir-chawakorn/sanook-cli/tree/main/skills/compose-local-dev-stack
Command: npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill compose-local-dev-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the fragility and inconsistency of local development environments by providing a reproducible, health-checked, and automated way to spin up multi-service application stacks.

Core Features & Use Cases

  • Deterministic Startup: Uses healthchecks and dependency ordering to ensure backing services like databases and caches are fully ready before the application starts.
  • Hot-Reloading: Configures bind mounts and dev-specific commands to enable live code updates without container rebuilds.
  • Environment Management: Supports profiles for optional services, named volumes for data persistence, and clean-slate reset commands for rapid iteration.

Quick Start

Use the compose-local-dev-stack skill to generate a robust docker-compose configuration that includes a postgres database and redis cache with proper healthchecks for my current project.

Frequently Asked Questions about compose-local-dev-stack

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

FAQPage Schema
How do I configure Docker Compose to wait for database readiness before starting my application?

Configure Docker Compose healthchecks with strict dependency ordering to ensure backing datastores like databases and caches are fully ready before the application starts. This deterministic startup prevents connection failures during local development.

What is the best way to set up a local multi-service development stack with persistent data?

Set up a local multi-service development stack using Docker Compose with named volumes for data persistence and healthcheck-based dependency management. This approach provides reproducible initialization scripts and ensures reliable service-to-service networking.

Can I enable hot-reloading in Docker Compose without rebuilding containers?

Yes, enable hot-reloading in Docker Compose by configuring bind mounts alongside development-specific commands. This setup allows live code updates to reflect immediately in the running containers without requiring a full image rebuild.

Does Docker Compose support managing optional services and clean-slate resets?

Docker Compose supports environment management through profiles for optional services and provides commands for clean-slate resets. This enables rapid iteration by allowing developers to quickly toggle services and clear persistent datastores.

How do I run idempotent database migrations in a local Docker Compose environment?

Run idempotent database migrations in a local Docker Compose environment by utilizing reproducible initialization scripts executed after backing service healthchecks pass. This ensures migrations apply exactly once against fully initialized persistent datastores.