Consolidate documentation and update backend services

- Reorganize docs into 'Core deployment guides' and 'Setup and configuration' subdirectories
- Consolidate redundant documentation files (ACR, pipelines, deployment guides)
- Add documentation consolidation plan
- Update backend database factory and logger services
- Update migration script and docker-compose configurations
- Add PostgreSQL setup script
This commit is contained in:
2026-01-22 22:45:54 +01:00
parent 18aec4ad80
commit f4399a8e4e
49 changed files with 1320 additions and 7243 deletions

View File

@@ -71,11 +71,11 @@ done
echo "✅ PostgreSQL is ready"
echo ""
# Create databases (if needed)
echo "📊 Creating databases..."
docker-compose -f "$COMPOSE_FILE" exec -T postgres psql -U cmdb -c "CREATE DATABASE cmdb_cache;" 2>/dev/null || echo " Database cmdb_cache already exists or will be created automatically"
docker-compose -f "$COMPOSE_FILE" exec -T postgres psql -U cmdb -c "CREATE DATABASE cmdb_classifications;" 2>/dev/null || echo " Database cmdb_classifications already exists or will be created automatically"
echo "✅ Databases ready"
# Create database (if needed)
echo "📊 Creating database..."
echo " Note: Single database is used by default (contains all tables)"
docker-compose -f "$COMPOSE_FILE" exec -T postgres psql -U cmdb -c "CREATE DATABASE cmdb_insight;" 2>/dev/null || echo " Database cmdb_insight already exists or will be created automatically"
echo "✅ Database ready"
echo ""
echo "✨ PostgreSQL database has been reset!"