mirror of
https://github.com/Zie619/n8n-workflows.git
synced 2025-11-25 03:15:25 +08:00
* ok ok * Refactor README for better structure and readability Updated README to improve formatting and clarity. * Initial plan * Initial plan * Initial plan * Initial plan * Comprehensive deployment infrastructure implementation Co-authored-by: sahiixx <221578902+sahiixx@users.noreply.github.com> * Add comprehensive deployment infrastructure - Docker, K8s, CI/CD, scripts Co-authored-by: sahiixx <221578902+sahiixx@users.noreply.github.com> * Add files via upload * Complete deployment implementation - tested and working production deployment Co-authored-by: sahiixx <221578902+sahiixx@users.noreply.github.com> * Revert "Implement comprehensive deployment infrastructure for n8n-workflows documentation system" * Update docker-compose.prod.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update scripts/health-check.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: dopeuni444 <sahiixofficial@wgmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
3.6 KiB
3.6 KiB
🚀 Deployment Quick Start Guide
This guide provides rapid deployment instructions for the N8N Workflows Documentation Platform.
🐳 Docker Deployment (Recommended)
Option 1: One-Click Docker Deployment
# Quick start - builds and runs everything
./run-as-docker-container.sh
What this does:
- Builds the Docker image
- Starts the application with Docker Compose
- Performs health checks
- Opens browser automatically
- Accessible at: http://localhost:8000
Option 2: Manual Docker Compose
# Development environment
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build
# Production environment
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
Option 3: Using Deployment Script
# Deploy to development
./scripts/deploy.sh development
# Deploy to production
./scripts/deploy.sh production
# Check health
./scripts/health-check.sh
# Create backup
./scripts/backup.sh
🖥️ Local Python Deployment
Quick Start
# Install dependencies
pip install -r requirements.txt
# Start development server
python run.py
# Start production server
python run.py --host 0.0.0.0 --port 8000
With Environment Configuration
# Copy environment template
cp .env.development .env
# Edit configuration as needed
# vim .env
# Start with environment file
python run.py --dev
☸️ Kubernetes Deployment
Using kubectl
# Apply all manifests
kubectl apply -f k8s/
# Check status
kubectl get pods -n n8n-workflows
kubectl get services -n n8n-workflows
Using Helm
# Install with Helm
helm install workflows-docs ./helm/workflows-docs --namespace n8n-workflows --create-namespace
# Upgrade deployment
helm upgrade workflows-docs ./helm/workflows-docs
# Uninstall
helm uninstall workflows-docs --namespace n8n-workflows
🔧 Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
ENVIRONMENT |
Deployment environment | development |
HOST |
Server host | 127.0.0.1 |
PORT |
Server port | 8000 |
LOG_LEVEL |
Logging level | info |
Environment Files
.env.development- Development configuration.env.staging- Staging configuration.env.production- Production configuration
📊 Health Checks
# Quick health check
curl http://localhost:8000/api/stats
# Detailed health check with script
./scripts/health-check.sh http://localhost:8000
🔍 Access Points
Once deployed, access the application at:
- Main Interface: http://localhost:8000
- API Documentation: http://localhost:8000/docs
- API Stats: http://localhost:8000/api/stats
- Health Check: http://localhost:8000/api/stats
🛠️ Troubleshooting
Common Issues
-
Port already in use
# Use different port docker compose up -p 8001:8000 -
Database issues
# Force reindex python run.py --reindex -
Docker build fails
# Clean build docker system prune -f docker compose build --no-cache
View Logs
# Docker logs
docker compose logs -f
# Application logs
tail -f logs/app.log
📚 Full Documentation
For complete deployment documentation, see:
- DEPLOYMENT.md - Comprehensive deployment guide
- README.md - Application overview and features
🆘 Quick Help
# Show deployment script help
./scripts/deploy.sh --help
# Show Python application help
python run.py --help
# Show health check help
./scripts/health-check.sh --help