feat(Production): Complete production deployment infrastructure

- Add comprehensive health check system with multiple endpoints
- Add Prometheus metrics endpoint
- Add production logging configurations (5 strategies)
- Add complete deployment documentation suite:
  * QUICKSTART.md - 30-minute deployment guide
  * DEPLOYMENT_CHECKLIST.md - Printable verification checklist
  * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle
  * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference
  * production-logging.md - Logging configuration guide
  * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation
  * README.md - Navigation hub
  * DEPLOYMENT_SUMMARY.md - Executive summary
- Add deployment scripts and automation
- Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment
- Update README with production-ready features

All production infrastructure is now complete and ready for deployment.
This commit is contained in:
2025-10-25 19:18:37 +02:00
parent caa85db796
commit fc3d7e6357
83016 changed files with 378904 additions and 20919 deletions

View File

@@ -77,6 +77,16 @@ test-profile: ## Profiling der langsamsten Tests
test-filter: ## Führt spezifische Tests aus (Usage: make test-filter FILTER="EventDispatcher")
docker exec php ./vendor/bin/pest --filter="$(FILTER)"
# Security Checks
security-check: ## Führt Composer Security Audit aus
docker exec php composer security:audit
security-audit-json: ## Führt Security Audit mit JSON-Output aus
docker exec php composer security:audit-json
security-check-prod: ## Prüft nur Production-Dependencies auf Schwachstellen
docker exec php composer security:check
# Cleanup temporärer/metadaten-Dateien
clean: ## Entfernt temporäre Dateien
find . -type f -name "*Zone.Identifier" -delete
@@ -201,4 +211,35 @@ logs-production: ## Show production logs
@echo "📋 Showing production logs..."
@cd deployment && make logs-prod-php
.PHONY: up down build restart logs ps phpinfo deploy setup clean clean-coverage status fix-ssh-perms setup-ssh test test-coverage test-coverage-html test-unit test-framework test-domain test-watch test-parallel test-profile test-filter update-production restart-production deploy-production-quick status-production logs-production
# SSL Certificate Management (PHP Framework Integration)
ssl-init: ## Initialize Let's Encrypt certificates
@echo "🔒 Initializing SSL certificates..."
docker exec php php console.php ssl:init
ssl-init-staging: ## Initialize Let's Encrypt certificates (Staging/Testing)
@echo "🔒 Initializing SSL certificates (Staging Mode)..."
@echo "💡 Hint: Set LETSENCRYPT_STAGING=1 in .env for staging mode"
docker exec php php console.php ssl:init
ssl-test: ## Test SSL configuration
@echo "🔍 Testing SSL configuration..."
docker exec php php console.php ssl:test
ssl-renew: ## Manually renew certificates
@echo "🔄 Renewing SSL certificates..."
docker exec php php console.php ssl:renew
ssl-status: ## Check certificate status and expiry
@echo "📋 Certificate status:"
docker exec php php console.php ssl:status
ssl-backup: ## Backup Let's Encrypt certificates
@echo "💾 Backing up SSL certificates..."
@mkdir -p backups
docker run --rm \
-v certbot-conf:/etc/letsencrypt \
-v $(PWD)/backups:/backup \
alpine tar czf /backup/letsencrypt-$(shell date +%Y%m%d-%H%M%S).tar.gz /etc/letsencrypt
@echo "✅ Backup created in backups/"
.PHONY: up down build restart logs ps phpinfo deploy setup clean clean-coverage status fix-ssh-perms setup-ssh test test-coverage test-coverage-html test-unit test-framework test-domain test-watch test-parallel test-profile test-filter security-check security-audit-json security-check-prod update-production restart-production deploy-production-quick status-production logs-production ssl-init ssl-init-staging ssl-test ssl-renew ssl-status ssl-backup