fengling-member-service/scripts
2026-02-05 14:21:36 +08:00
..
mysql-init feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
postgres-init feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
clean-infrastructure.ps1 feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
clean-infrastructure.sh feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
docker-compose.yml feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
EXAMPLES.md feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
init-infrastructure.ps1 feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
init-infrastructure.sh feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00
README.md feat(console): complete migration of User, Tenant, and Role management APIs 2026-02-05 14:21:36 +08:00

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.