Skip to content
Open
8 changes: 7 additions & 1 deletion docs/get-started/3.dockerDeployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ To start the service with docker-compose, you need to install [docker-compose](h

### 1. Apache StreamPark™ deployment based on h2 and docker-compose

This method is suitable for beginners to learn and become familiar with the features. The configuration will reset after the container is restarted. Below, you can configure Mysql or Pgsql for persistence.
This method is suitable for beginners to learn, become familiar with the features, and use on a lightweight scale.

H2 is a lightweight embedded relational database with a small footprint, high performance, and easy integration into Java applications. Its syntax is very similar to MySQL, and it supports persistence. StreamPark uses H2 as its default configuration, allowing developers to quickly get started.

The default persistence configuration for H2 (`datasource.h2-dir`) is set to `~/streampark/h2-data` under the user's directory. If the user configures `datasource.h2-dir` to a custom path, such as `~/streampark/h2-data-dir`, users can adjust this configuration according to their needs.

Additionally, you can also configure MySQL or PostgreSQL for persistence.

### 2. Deployment

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ sidebar_position: 3

### 1. 基于 h2 和 docker-compose 部署 Apache StreamPark™

该方式适用于入门学习、熟悉功能特性,容器重启后配置会失效,下方可以配置Mysql、Pgsql进行持久化
该方式适用于入门学习、熟悉功能特性以及轻量规模使用

H2 是一个体积小、性能高、易于嵌入 Java 应用程序的轻量级嵌入式关系型数据库,其语法和 Mysql 大同小异,同时其支持持久化,StreamPark 默认配置也是采用 H2 数据库,方便开发者快速使用

H2 默认持久化配置 `datasource.h2-dir` 目录为 `~/streampark/h2-data` 下,如用户自由配置 `datasource.h2-dir`,例如配置为 `~/streampark/h2-data-dir`,用户可以根据自己的需求进行配置
Comment thread
VampireAchao marked this conversation as resolved.
Outdated

同时下方也可以配置Mysql、Pgsql进行持久化
Comment thread
VampireAchao marked this conversation as resolved.
Outdated

#### 2. 部署

Expand Down