Docker & Environment Setup

Configure a reproducible Docker-based development environment for the SE104_VLEAGUE project with PostgreSQL, NestJS, and React.

1|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/daithang-organization/SE104_VLEAGUE --skill docker-environment-setup-daithang-organization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Docker & Environment Setup
Source: https://github.com/daithang-organization/SE104_VLEAGUE/tree/main/.agent/skills/docker-environment-setup
Command: npx skills add https://github.com/daithang-organization/SE104_VLEAGUE --skill docker-environment-setup-daithang-organization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a clear, repeatable guide for configuring Docker infrastructure, environment variables, and local development workflows for SE104_VLEAGUE, enabling reproducible setups across machines.

Core Features & Use Cases

  • Containerized database setup: Run PostgreSQL locally with Docker to ensure consistent data access.
  • Full-stack local development: Orchestrate API and Web services via Docker Compose for a seamless dev experience.
  • Environment management: Centralized configuration and quickstart steps to bootstrap new environments.
  • Practical workflows: Step-by-step guidance for development, debugging, and onboarding.

Quick Start

Follow these steps to bootstrap the project locally:

  1. Prerequisites: Ensure Node.js version is compatible and enable corepack for pnpm.
  2. Install dependencies: pnpm install
  3. Start PostgreSQL container: docker compose -f infra/docker-compose.db.yml up -d
  4. Setup environment files: cp apps/api/.env.example apps/api/.env; cp apps/web/.env.example apps/web/.env
  5. Initialize database: cd apps/api; pnpm dlx prisma migrate dev --name init; pnpm run db:seed; cd ../..
  6. Start development servers: pnpm dev
  • API: http://localhost:8080
  • Web: http://localhost:5173

Frequently Asked Questions about Docker & Environment Setup

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

FAQPage Schema
How do I set up a Docker environment for a NestJS and PostgreSQL project?

To set up a Docker environment for NestJS and PostgreSQL, use a docker-compose file to orchestrate the database container, configure .env files, and run Prisma migrations to initialize the database schema and seed initial data.

What's the best way to run PostgreSQL locally for full-stack development?

The best way to run PostgreSQL locally for full-stack development is using Docker Compose to start a containerized database, ensuring consistent data access across different machines and seamless integration with your API and web services.

How do I initialize a Prisma database after starting a Docker PostgreSQL container?

To initialize a Prisma database after starting a Docker PostgreSQL container, navigate to your API directory and run prisma migrate dev to create the schema, followed by the db:seed script to populate initial data.

Do I need pnpm and corepack enabled to bootstrap a NestJS and React monorepo?

Yes, you need pnpm and corepack enabled to bootstrap a NestJS and React monorepo, as corepack manages the pnpm version required to install dependencies and run the development servers for both API and web applications.

Can I orchestrate both API and web services with Docker Compose for local development?

Yes, you can orchestrate both API and web services with Docker Compose for local development, allowing you to manage PostgreSQL, NestJS, and React containers together to create a seamless and reproducible full-stack environment.

Why configure environment files separately for API and web applications in a Docker setup?

Configuring environment files separately for API and web applications in a Docker setup ensures centralized configuration management, allowing each service to securely access its specific database URLs and server ports without hardcoding sensitive variables.