What problem does it solve?
This Skill guides engineers to design, build, and deploy a robust Docker-based multi-service stack that consolidates PostgreSQL, Node.js backend, Nginx reverse proxy, and Supervisor process management for production readiness.
Core Features & Use Cases
- Multi-stage build patterns to minimize image size and separate build-time dependencies.
- Supervisor-driven startup order to ensure database readiness before migrations and backend startup.
- Nginx reverse proxy configuration for API routing and static content delivery, with health checks integrated.
- Health check setup and monitoring guidelines to maintain reliable deployments.
- Deployment strategies and rollback patterns (blue/green, versioned tags) for production environments.
Quick Start
Start the stack with docker-compose up -d in the repository root (if a docker-compose.yml is provided). Alternatively, build and run the images manually:
- Build: docker build -t luxia-ecommerce:latest .
- Run: docker run -d --name luxia-app -p 80:80
-e JWT_SECRET=your-secret -e DB_PASSWORD=your-db-password -e POSTGRES_PASSWORD=your-db-password
-v luxia-postgres:/var/lib/postgresql/data -v luxia-uploads:/app/backend/uploads luxia-ecommerce:latest
- Or use separate services with docker-compose for frontend, backend, and nginx.