Project.Fengling.QoderVersion/Backend/scripts/README.md
sam e24925e1ed chore(build): 添加基础构建配置和版本管理
- 新增 .dockerignore 文件,忽略多种临时及中间文件
- 新增 .gitattributes 文件,配置文本文件换行及合并行为
- 新增详细的 .gitignore 文件,排除多种开发及生成文件
- 新增 VS Code C# 代码片段,提升开发效率
- 添加 Directory.Build.props,统一 MSBuild 配置和代码分析规则
- 添加空的 Directory.Build.targets,预留构建任务扩展位置
- 添加 Directory.Packages.props,实现依赖包版本集中管理和声明
2026-02-11 12:58:54 +08:00

1.5 KiB

Infrastructure Initialization Scripts

This directory contains scripts to help developers quickly set up the infrastructure needed for development and debugging.

Available Scripts

  • docker-compose.yml - Complete infrastructure setup using Docker Compose
  • init-infrastructure.sh - Shell script for Linux/macOS
  • init-infrastructure.ps1 - PowerShell script for Windows
  • clean-infrastructure.sh - Cleanup script for Linux/macOS
  • clean-infrastructure.ps1 - Cleanup script for Windows

Quick Start

# Start all infrastructure services
docker-compose up -d

# Stop all services
docker-compose down

# Stop and remove volumes (clean start)
docker-compose down -v

Using Individual Scripts

# Linux/macOS
./init-infrastructure.sh

# Windows PowerShell
.\init-infrastructure.ps1

Infrastructure Components

The scripts will set up the following services:

Database Options

  • MySQL (default): Port 3306, root password: 123456
  • SQL Server: Port 1433, SA password: Test123456!
  • PostgreSQL: Port 5432, postgres password: 123456

Cache & Message Queue

  • Redis: Port 6379, no password
  • RabbitMQ: Ports 5672 (AMQP), 15672 (Management UI), guest/guest
  • Kafka: Port 9092 (when using Kafka option)

Management Interfaces

Configuration

The default configuration matches the test containers setup used in the project's integration tests.