Skip to main content

Installation Overview

📘 Overview

CSGHUB is an integrated AI R&D and collaboration platform that supports the full lifecycle of model management → inference → fine-tuning → application deployment.

To meet various deployment scenarios and scales, CSGHUB provides multiple installation methods:

Deployment MethodUse CaseComplexityHighlights
Helm Chart (Recommended)Production / Cloud-native⭐⭐⭐⭐High availability, multi-node support, auto-scaling
Docker ComposeTesting / Development / Single node⭐⭐⭐Lightweight and easy to start

🧱 Component Architecture

CSGHUB consists of multiple core and optional components:

Module NameTypeDescription
accountingCore ServiceUser billing, compute quota, and usage tracking
casdoorAuth ServiceAuthentication and identity center (OAuth / OIDC)
dataviewerApplicationDataset browsing and visualization
gitalyStorage ServiceGit repository backend for code and model versions
gitlab_shellHelper ServiceGit SSH access layer for code push/pull operations
lokiLogging ServiceCentralized log collection and querying
minioStorage ServiceObject storage for models, datasets, and artifacts
mirror_lfsSync ServiceManages LFS (large file) mirror synchronization
mirror_repoSync ServiceHandles repository mirroring and remote sync
natsMessage MiddlewareEvent-driven messaging and async task queue
nginxGatewayWeb traffic entry and reverse proxy
notificationMessage ServiceSystem notifications and async message dispatching
portalFrontendWeb UI for user interaction
postgresqlDatabaseCore data store for models, users, and tasks
prometheusMonitoringSystem and component metric collection
redisCache ServiceSession caching and queue backend
registryImage RegistryStores container and model images (OCI compatible)
rproxyInternal ProxyInternal routing and unified request proxy
serverCore BackendMain service for scheduling, API, and orchestration
temporalWorkflow ServiceDistributed task orchestration and workflow engine
temporal_uiManagement UITemporal workflow web console
temporal_workerWorker NodeTask execution and async process runner
userUser ServiceUser, organization, and permissions management
csgshipAI Assistant APIBackend service for the CodeSouler IDE integration

🧩 System Layers

LayerExamplesPurpose
Gateway Layernginx, rproxyExternal access and traffic routing
Core Service Layerserver, portal, user, accounting, notification, dataviewerMain platform functionality
Storage & Infrastructurepostgresql, redis, minio, registry, gitaly, gitlab-shell, casdoorData persistence and management
Workflow & Queue Layertemporal, temporal_worker, nats, mirror_*Workflow orchestration and messaging
Auxiliary Layerloki, prometheus, temporal_uiLogging, monitoring, visualization
AI Assistant LayercsgshipIDE integration backend

⚙️ System Requirements

ResourceMinimumRecommended
CPU / Memory4 cores / 8GB8 cores / 16GB
Storage50 GB200 GB+
ArchitectureAMD64 / ARM64Supports x86 and ARM

✅ Software Requirements

ComponentVersion
Docker Engine≥ 20.10
Docker Compose≥ 2.0
Kubernetes (optional)≥ 1.28
Helm≥ 3.12

🧩 Deployment Options

Ideal for demo environments or feature validation

  • Method: Docker Compose

  • Startup time: ~2 minutes

  • Features: Single-node, one-click startup

  • Limitations:

    • Does not include the Runner service (requires Kubernetes)
    • Does not include the Dataflow service (available via Docker Compose / Helm)

Suitable for production and enterprise clusters

  • Method: Helm Chart

  • Highlights:

    • Multi-node and high-availability support
    • Integrates with external DBs, Redis, and object storage
    • Compatible with major cloud providers (Alibaba Cloud, Tencent Cloud, AWS, etc.)

🌍 External Resource Configuration

For production environments, it is strongly recommended to use externally managed services (databases, caches, storage) to improve reliability and scalability.

Resource TypeRecommended Solution
PostgreSQLAlibaba Cloud RDS / AWS RDS / Cloud SQL
RedisAlibaba Cloud Redis / AWS ElastiCache
Object StorageAlibaba Cloud OSS / AWS S3 / External MinIO
RegistryPrivate registry (Harbor / GitLab Registry)

💬 Support & Feedback