docker-dev-setup

Configure Docker Compose with Postgres 17, Redis 8, and environment variables.

2|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/mikemikula/AI-Coding-Summit-2026 --skill docker-dev-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-dev-setup
Source: https://github.com/mikemikula/AI-Coding-Summit-2026/tree/main/.cursor/skills/docker-dev-setup
Command: npx skills add https://github.com/mikemikula/AI-Coding-Summit-2026 --skill docker-dev-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill removes the tedious setup of Postgres 17, Redis 8, and environment wiring so the local Cursor project boots consistently across machines.

Core Features & Use Cases

  • Docker Compose blueprint stands up Postgres 17 and Redis 8 with the ports, environment variables, and persistent volume already defined.
  • Environment template keeps secrets out of version control by pointing developers to the provided .env.example.
  • Dev orchestration chains docker compose, the wait-for-db helper, Prisma migrations, and next dev to let contributors start coding immediately.

Quick Start

Run pnpm dev:setup to launch docker compose, ensure Postgres is ready, run Prisma migrations, and start the Next.js dev server.

Frequently Asked Questions about docker-dev-setup

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

FAQPage Schema
How do I set up a local Docker Compose environment with Postgres and Redis for Next.js development?

This Skill configures a docker-compose.yml defining Postgres 17 and Redis 8 services with ports, environment variables, and persistent volumes to establish a consistent local development environment for Next.js projects.

What's the best way to wait for Postgres readiness before running Prisma migrations in Docker?

Use a wait-for-db.mjs helper script to check Postgres availability. This Skill orchestrates dev scripts to ensure the database is fully ready before executing pnpm prisma migrate to apply schema changes safely.

Do I need Docker installed to run Postgres 17 and Redis 8 for local web development?

Yes, Docker is required. This Skill generates a Docker Compose blueprint requiring docker compose up to launch Postgres 17 and Redis 8 services, meaning Docker must be installed and running on your machine before local development.

How does the wait-for-db helper script work with Docker Compose and Prisma migrations?

The wait-for-db helper script pauses execution until the Postgres Docker container accepts connections. Once readiness is verified, the orchestration script proceeds to execute pnpm prisma migrate before launching the Next.js server.

Can I use this Docker Compose setup to manage environment variables for Postgres and Redis?

Yes, this Skill generates an .env.example file defining necessary environment variables for Postgres and Redis. Developers copy this template to configure Docker Compose services while keeping secrets out of version control.

Why does my Next.js dev server fail to connect to Postgres when using Docker Compose?

Startup failures often occur because Postgres is not fully ready. Running the wait-for-db.mjs helper script before executing pnpm prisma migrate and pnpm next dev ensures the database accepts connections before the application starts.