返回应用列表
RudderStack Data Plane

Deploy RudderStack Data Plane on Your Own Server

Deploy RudderStack Data Plane, the open-source Customer Data Platform. This template includes the backend server, PostgreSQL database, data transformer, and metrics exporter.

🗄️ Databases📈 Monitoring

想更快部署 RudderStack Data Plane到服务器?试试 Senate,一条命令完成部署,自动配置 HTTPS 和监控。

立即开始

什么是 RudderStack Data Plane?

**Deploy your self-hosted RudderStack Open Source instance on Senate.** This template will automatically set up the following services: - RudderStack Server (Backend): The core data processing engine. - PostgreSQL Database: Stores job metadata and other operational data. - RudderStack Transformer: Handles data transformations for selected destinations. - StatsD Metrics Exporter: For exposing application metrics. **Configuration Notes:** 1. **Workspace Token (Required):** You MUST provide your RudderStack Workspace Token. You can find this in your RudderStack control plane (e.g., app.rudderstack.com). 2. **PostgreSQL Password:** A strong password for the database will be auto-generated. You can override it if necessary. 3. **Image Versions:** Default versions are set to 'latest'. For production environments, it is highly recommended to specify stable, numerical version tags for both Rudder Server and Rudder Transformer. **Important Note on PostgreSQL `shm_size`:** The original Docker Compose for RudderStack specifies `shm_size: 128mb` for the PostgreSQL container. This YAML template for Senate does not directly set this Docker-specific option as `captainVersion: 4` templates typically focus on higher-level configurations. - For many use cases, the default Docker shared memory size (often 64MB) may be sufficient. - If you encounter performance issues or errors with the PostgreSQL service (`${app_name}-db`), especially under heavy load or with numerous connections, you might need to increase the `shm_size` available to Docker containers. This is generally configured at the Docker daemon level on your Senate worker node(s). Please consult your Docker and OS documentation for instructions on how to adjust this setting.

了解更多

自托管 RudderStack Data Plane

按照以下步骤在您的服务器上部署。

1

安装 Docker

如果服务器上已安装 Docker,可跳过此步骤。

curl -fsSL https://get.docker.com | sh
2

配置

自定义以下设置。大多数情况下使用默认值即可。

General
3

部署

复制配置并在服务器上运行。

services:
  rudder_stack-backend:
    image: rudderlabs/rudder-server:1.49.3
    environment:
      CONFIG_BACKEND_URL: https://api.rudderstack.com
      DEST_TRANSFORM_URL: http://rudder_stack-d-transformer:9090
      JOBS_DB_DB_NAME: rudder
      JOBS_DB_HOST: rudder_stack-db
      JOBS_DB_PASSWORD: ae12fe52b82de4112fa3a7a9
      JOBS_DB_PORT: "5432"
      JOBS_DB_USER: postgres
      RSERVER_GATEWAY_WEBHOOK_SOURCE_LIST_FOR_PARSING_PARAMS: Shopify
      STATSD_SERVER_URL: rudder_stack-metrics-exporter:9125
      WORKSPACE_TOKEN: ""
    depends_on:
      - rudder_stack-db
      - rudder_stack-metrics-exporter
      - rudder_stack-d-transformer
  rudder_stack-d-transformer:
    image: rudderstack/rudder-transformer:1.100.0
    environment:
      STATSD_SERVER_HOST: rudder_stack-metrics-exporter
      STATSD_SERVER_PORT: "9125"
    depends_on:
      - rudder_stack-metrics-exporter
  rudder_stack-db:
    image: postgres:15-alpine
    environment:
      POSTGRES_DB: rudder
      POSTGRES_PASSWORD: ae12fe52b82de4112fa3a7a9
      POSTGRES_USER: postgres
    volumes:
      - rudder_stack-db-data:/var/lib/postgresql/data
  rudder_stack-metrics-exporter:
    image: prom/statsd-exporter:v0.22.4
volumes:
  rudder_stack-db-data: {}

然后运行:

docker compose up -d
4

访问

启动后,访问您的应用: http://localhost:8080

为什么要自托管 RudderStack Data Plane?

完全数据所有权

数据保存在您的服务器上,无第三方访问。

无月费

只需支付服务器费用,无按席位或用量收费。

完全控制

按您的需求自定义、备份和扩展。

隐私与合规

满足 GDPR、HIPAA 或内部安全要求。

技术细节

Docker 镜像

rudderlabs/rudder-server:${app_version}

官方文档

www.rudderstack.com

想更快部署?

尝试 Senate!Senate 帮您处理 Docker、HTTPS、更新和监控。一条命令部署 300+ 应用。

在任意 Linux 服务器上安装:

sh -c "$(curl -sSL https://get.senate.sh)"