xacos make:docker

Generate production-ready Docker configuration for your Express.js application.

Usage

xacos make:docker

Generated Files

  • Dockerfile - Multi-stage production build
  • docker-compose.yml - Services orchestration
  • .dockerignore - Files to exclude from image

Docker Compose Services

The generated docker-compose.yml includes:

  • Your Express.js application
  • PostgreSQL database (if using Prisma)
  • MongoDB (if using MongoDB)
  • Redis cache
  • Network configuration
  • Volume mounts for data persistence

Building the Image

docker build -t my-api .

Running with Docker Compose

docker-compose up -d

Features

  • Multi-stage builds for optimized image size
  • Non-root user for security
  • Health checks
  • Environment-based configuration
  • Production optimizations