Added Documents Feature

This commit is contained in:
Eric Gullickson
2025-09-28 20:35:46 -05:00
parent 2e1b588270
commit 775a1ff69e
66 changed files with 5655 additions and 944 deletions

View File

@@ -14,7 +14,7 @@ help:
@echo " make logs-backend - View backend logs only"
@echo " make logs-frontend - View frontend logs only"
@echo " make shell-backend - Open shell in backend container"
@echo " make shell-frontend- Open shell in frontend container"
@echo " make shell-frontend - Open shell in frontend container"
@echo " make migrate - Run database migrations"
@echo ""
@echo "K8s-Ready Architecture Commands:"
@@ -48,7 +48,7 @@ setup:
@sleep 15 # Wait for databases to be ready
@docker compose exec admin-backend node dist/_system/migrations/run-all.js
@echo ""
@echo "K8s-ready setup complete!"
@echo "K8s-ready setup complete!"
@echo "Access application at: https://admin.motovaultpro.com"
@echo "Access platform landing at: https://motovaultpro.com"
@echo "Traefik dashboard at: http://localhost:8080"
@@ -126,29 +126,30 @@ traefik-logs:
@echo "Traefik access and error logs:"
@docker compose logs -f traefik
service-discovery:
@echo "🔍 Service Discovery Status:"
@echo "Service Discovery Status:"
@echo ""
@echo "Discovered Services:"
@curl -s http://localhost:8080/api/http/services 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ /' || echo " Traefik not ready yet"
@curl -s http://localhost:8080/api/http/services 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ - /' || echo " Traefik not ready yet"
@echo ""
@echo "Active Routes:"
@curl -s http://localhost:8080/api/http/routers 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ ➡️ /' || echo " No routes discovered yet"
@curl -s http://localhost:8080/api/http/routers 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ -> /' || echo " No routes discovered yet"
network-inspect:
@echo "🌐 K8s-Ready Network Architecture:"
@echo "K8s-Ready Network Architecture:"
@echo ""
@echo "Created Networks:"
@docker network ls --filter name=motovaultpro --format "table {{.Name}}\t{{.Driver}}\t{{.Scope}}" | grep -v default || echo "Networks not created yet"
@echo ""
@echo "Network Isolation Details:"
@echo " 🔐 frontend - Public-facing (Traefik + frontend services)"
@echo " 🔒 backend - API services (internal isolation)"
@echo " 🗄️ database - Data persistence (internal isolation)"
@echo " 🏗️ platform - Platform microservices (internal isolation)"
@echo " - frontend - Public-facing (Traefik + frontend services)"
@echo " - backend - API services (internal isolation)"
@echo " - database - Data persistence (internal isolation)"
@echo " - platform - Platform microservices (internal isolation)"
health-check-all:
@echo "🏥 Service Health Status:"
@echo "Service Health Status:"
@docker compose ps --format "table {{.Service}}\t{{.Status}}\t{{.Health}}"
@echo ""
@echo "Network Connectivity Test:"
@@ -167,7 +168,7 @@ generate-certs:
-out certs/motovaultpro.com.crt \
-config <(echo '[dn]'; echo 'CN=motovaultpro.com'; echo '[req]'; echo 'distinguished_name = dn'; echo '[SAN]'; echo 'subjectAltName=DNS:motovaultpro.com,DNS:admin.motovaultpro.com,DNS:*.motovaultpro.com,IP:127.0.0.1,IP:172.30.1.64') \
-extensions SAN
@echo "Certificate generated with SAN for mobile compatibility (includes $(shell hostname -I | awk '{print $$1}'))"
@echo "Certificate generated with SAN for mobile compatibility (includes $(shell hostname -I | awk '{print $$1}'))"
# Enhanced log commands with filtering
@@ -181,4 +182,4 @@ logs-backend-full:
@docker compose logs -f admin-backend admin-postgres admin-redis admin-minio
logs-clear:
@sudo sh -c "truncate -s 0 /var/lib/docker/containers/**/*-json.log"
@sudo sh -c "truncate -s 0 /var/lib/docker/containers/**/*-json.log"