refactor: ./apps/*
This commit is contained in:
@@ -24,10 +24,14 @@ Redpanda is a Kafka-compatible streaming data platform built for performance and
|
||||
2. Start the services:
|
||||
|
||||
```bash
|
||||
# Start only Redpanda (without console)
|
||||
docker compose up -d
|
||||
|
||||
# Or start with Redpanda Console UI
|
||||
docker compose --profile console up -d
|
||||
```
|
||||
|
||||
3. Access Redpanda Console at <http://localhost:8080>
|
||||
3. If started with console profile, access Redpanda Console at <http://localhost:8080>
|
||||
|
||||
4. Verify the cluster is healthy:
|
||||
|
||||
@@ -35,13 +39,21 @@ Redpanda is a Kafka-compatible streaming data platform built for performance and
|
||||
docker compose exec redpanda rpk cluster health
|
||||
```
|
||||
|
||||
## Profiles
|
||||
|
||||
This configuration supports the following Docker Compose profiles:
|
||||
|
||||
- **console**: Enables the Redpanda Console web UI for monitoring and management
|
||||
- To start with console: `docker compose --profile console up -d`
|
||||
- To start without console: `docker compose up -d`
|
||||
|
||||
## Service Endpoints
|
||||
|
||||
- **Kafka API** (external): `localhost:19092`
|
||||
- **Schema Registry**: `localhost:18081`
|
||||
- **HTTP Proxy**: `localhost:18082`
|
||||
- **Admin API**: `localhost:19644`
|
||||
- **Redpanda Console**: `http://localhost:8080`
|
||||
- **Redpanda Console** (when console profile is enabled): `http://localhost:8080`
|
||||
|
||||
## Basic Usage
|
||||
|
||||
|
||||
@@ -24,10 +24,14 @@ Redpanda 是一个与 Kafka 兼容的流数据平台,专为性能和开发者
|
||||
2. 启动服务:
|
||||
|
||||
```bash
|
||||
# 仅启动 Redpanda(不包含控制台)
|
||||
docker compose up -d
|
||||
|
||||
# 或者启动包含 Redpanda Console UI
|
||||
docker compose --profile console up -d
|
||||
```
|
||||
|
||||
3. 访问 Redpanda Console:<http://localhost:8080>
|
||||
3. 如果使用 console profile 启动,可访问 Redpanda Console:<http://localhost:8080>
|
||||
|
||||
4. 验证集群健康状态:
|
||||
|
||||
@@ -35,13 +39,21 @@ Redpanda 是一个与 Kafka 兼容的流数据平台,专为性能和开发者
|
||||
docker compose exec redpanda rpk cluster health
|
||||
```
|
||||
|
||||
## Profiles
|
||||
|
||||
此配置支持以下 Docker Compose profiles:
|
||||
|
||||
- **console**:启用 Redpanda Console Web UI,用于监控和管理
|
||||
- 启用 console:`docker compose --profile console up -d`
|
||||
- 不启用 console:`docker compose up -d`
|
||||
|
||||
## 服务端点
|
||||
|
||||
- **Kafka API**(外部):`localhost:19092`
|
||||
- **Schema Registry**:`localhost:18081`
|
||||
- **HTTP Proxy**:`localhost:18082`
|
||||
- **Admin API**:`localhost:19644`
|
||||
- **Redpanda Console**:`http://localhost:8080`
|
||||
- **Redpanda Console**(启用 console profile 时):`http://localhost:8080`
|
||||
|
||||
## 基本使用
|
||||
|
||||
|
||||
@@ -38,7 +38,8 @@ services:
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"]
|
||||
test:
|
||||
["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"]
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
@@ -55,6 +56,8 @@ services:
|
||||
console:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}redpandadata/console:${REDPANDA_CONSOLE_VERSION:-v3.3.2}
|
||||
profiles:
|
||||
- console
|
||||
ports:
|
||||
- "${REDPANDA_CONSOLE_PORT_OVERRIDE:-8080}:8080"
|
||||
environment:
|
||||
@@ -68,7 +71,8 @@ services:
|
||||
redpanda:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/admin/health"]
|
||||
test:
|
||||
["CMD", "wget", "--spider", "-q", "http://localhost:8080/admin/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user