Files
houseme 4168e6c180 chore(docs): move root examples to docs/examples/docker and update README (#663)
* chore(docs): move root `examples` to `docs/examples/docker` and update README

- Move root `examples/` contents into `docs/examples/docker/`.
- Update `docs/examples/README.md` to add migration note, new `docker/` entry and usage examples.
- Replace references from `examples/` to `docs/examples/docker/` where applicable.
- Reminder: verify CI and external links still point to the correct paths.

* fix
2025-10-17 17:17:36 +08:00
..

RustFS Deployment Examples

This directory contains practical deployment examples and configurations for RustFS.

Available Examples

MNMD (Multi-Node Multi-Drive)

Complete Docker Compose example for deploying RustFS in a 4-node, 4-drive-per-node configuration.

Features:

  • Proper disk indexing (1..4) to avoid VolumeNotFound errors
  • Startup coordination via wait-and-start.sh script
  • Service discovery using Docker service names
  • Health checks with alternatives for different base images
  • Comprehensive documentation and verification checklist

Use Case: Production-ready multi-node deployment for high availability and performance.

Quick Start:

cd docs/examples/mnmd
docker-compose up -d

See also:

Other Deployment Examples

For additional deployment examples, see:

  • docker/ - Root-level examples directory with:

    • docker-quickstart.sh - Quick start script for basic deployments, Quickstart script (basic /dev/prod/status/test/cleanup)
    • enhanced-docker-deployment.sh - Advanced deployment scenarios, Advanced deployment script with multiple scenarios and detailed logs (basic /dev/prod/all/status/test/logs/cleanup)
    • enhanced-security-deployment.sh - Production-ready scripts with TLS, throttling, and secure credential generation
    • docker-comprehensive.yml - Docker Compose with multiple profiles, Docker Compose files containing multiple profiles (basic / dev / production / enterprise / api-only / nginx, etc.)
    • Usage example:
      # Rapid development environment
      ./docs/examples/docker/docker-quickstart.sh dev
      
      # Start dev profile using Docker Compose
      docker-compose -f docs/examples/docker/docker-comprehensive.yml --profile dev up -d
      
      # Secure deployment
      ./docs/examples/docker/enhanced-security-deployment.sh
      
      • Note: If the original CI or other documents refer to the old path examples/, please update it to docs/examples/docker/. Relative links within the document are already in this README.
  • .docker/compose/ - Docker Compose configurations:

    • docker-compose.cluster.yaml - Basic cluster setup
    • docker-compose.observability.yaml - Observability stack integration

Contributing

When adding new examples:

  1. Create a dedicated subdirectory under docs/examples/
  2. Include a comprehensive README.md
  3. Provide working configuration files
  4. Add verification steps or checklists
  5. Document common issues and troubleshooting

Support

For issues or questions: