xacos make:docker
Generate production-ready Docker configuration for your Express.js application.
Usage
xacos make:dockerGenerated Files
Dockerfile- Multi-stage production builddocker-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 -dFeatures
- Multi-stage builds for optimized image size
- Non-root user for security
- Health checks
- Environment-based configuration
- Production optimizations