feat: add Doris and Overleaf services with configuration files
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
# Apache Doris version
|
||||
DORIS_VERSION=3.0.0
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
|
||||
# Global registry prefix (optional)
|
||||
# GLOBAL_REGISTRY=your-registry.example.com/
|
||||
|
||||
# ==================== Frontend (FE) Port Overrides ====================
|
||||
|
||||
# FE query port (default: 9030)
|
||||
# DORIS_FE_QUERY_PORT_OVERRIDE=9030
|
||||
|
||||
# FE HTTP port for web UI (default: 8030)
|
||||
# DORIS_FE_HTTP_PORT_OVERRIDE=8030
|
||||
|
||||
# FE RPC port (default: 9020)
|
||||
# DORIS_FE_RPC_PORT_OVERRIDE=9020
|
||||
|
||||
# FE edit log port (default: 9010)
|
||||
# DORIS_FE_EDIT_LOG_PORT_OVERRIDE=9010
|
||||
|
||||
# ==================== Backend (BE) Port Overrides ====================
|
||||
|
||||
# BE heartbeat port (default: 9050)
|
||||
# DORIS_BE_HEARTBEAT_PORT_OVERRIDE=9050
|
||||
|
||||
# BE Thrift RPC port (default: 9060)
|
||||
# DORIS_BE_THRIFT_RPC_PORT_OVERRIDE=9060
|
||||
|
||||
# BE HTTP port (default: 8040)
|
||||
# DORIS_BE_HTTP_PORT_OVERRIDE=8040
|
||||
|
||||
# ==================== Resource Limits (FE) ====================
|
||||
|
||||
# FE CPU limits
|
||||
# DORIS_FE_CPU_LIMIT=1.00
|
||||
# DORIS_FE_CPU_RESERVATION=0.50
|
||||
|
||||
# FE Memory limits
|
||||
# DORIS_FE_MEMORY_LIMIT=2G
|
||||
# DORIS_FE_MEMORY_RESERVATION=1G
|
||||
|
||||
# ==================== Resource Limits (BE) ====================
|
||||
|
||||
# BE CPU limits
|
||||
# DORIS_BE_CPU_LIMIT=2.00
|
||||
# DORIS_BE_CPU_RESERVATION=1.00
|
||||
|
||||
# BE Memory limits
|
||||
# DORIS_BE_MEMORY_LIMIT=4G
|
||||
# DORIS_BE_MEMORY_RESERVATION=2G
|
||||
@@ -0,0 +1,52 @@
|
||||
# Doris
|
||||
|
||||
Apache Doris is a modern OLAP database designed for fast analytics and real-time business intelligence. It provides SQL interface compatible with standard SQL semantics and supports both batch and real-time data processing.
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## Ports
|
||||
|
||||
| Service | Port | Purpose |
|
||||
| ------- | ---- | ----------------- |
|
||||
| FE | 9030 | Query Port |
|
||||
| FE | 8030 | Web UI & HTTP API |
|
||||
| BE | 8040 | Backend HTTP Port |
|
||||
|
||||
## Default Credentials
|
||||
|
||||
- Web UI: <http://localhost:8030>
|
||||
- Username: `admin`
|
||||
- Password: `admin` (default, should be changed)
|
||||
|
||||
## Environment Variables
|
||||
|
||||
Key environment variables:
|
||||
|
||||
- `DORIS_VERSION`: Docker image version (default: 3.0.0)
|
||||
- `DORIS_FE_CPU_LIMIT`: FE CPU limit (default: 1.00)
|
||||
- `DORIS_FE_MEMORY_LIMIT`: FE memory limit (default: 2G)
|
||||
- `DORIS_BE_CPU_LIMIT`: BE CPU limit (default: 2.00)
|
||||
- `DORIS_BE_MEMORY_LIMIT`: BE memory limit (default: 4G)
|
||||
|
||||
See `.env.example` for all available options.
|
||||
|
||||
## Architecture
|
||||
|
||||
The deployment includes:
|
||||
|
||||
- **Frontend (FE)**: Handles query planning, metadata management, and user connections
|
||||
- **Backend (BE)**: Executes queries and manages data storage
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Apache Doris Official Docs](https://doris.apache.org/)
|
||||
- [Quick Start Guide](https://doris.apache.org/docs/get-starting/)
|
||||
- [SQL Reference](https://doris.apache.org/docs/sql-manual/)
|
||||
|
||||
## License
|
||||
|
||||
Apache License 2.0
|
||||
@@ -0,0 +1,52 @@
|
||||
# Doris
|
||||
|
||||
Apache Doris 是一个现代化的 OLAP 数据库,为快速分析和实时商业智能而设计。它提供兼容标准 SQL 语义的 SQL 接口,并支持批量和实时数据处理。
|
||||
|
||||
## 快速开始
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## 端口
|
||||
|
||||
| 服务 | 端口 | 用途 |
|
||||
| ---- | ---- | ------------------ |
|
||||
| FE | 9030 | 查询端口 |
|
||||
| FE | 8030 | Web UI 和 HTTP API |
|
||||
| BE | 8040 | 后端 HTTP 端口 |
|
||||
|
||||
## 默认凭证
|
||||
|
||||
- Web UI:<http://localhost:8030>
|
||||
- 用户名:`admin`
|
||||
- 密码:`admin`(默认值,应该更改)
|
||||
|
||||
## 环境变量
|
||||
|
||||
关键环境变量:
|
||||
|
||||
- `DORIS_VERSION`:Docker 镜像版本(默认值:3.0.0)
|
||||
- `DORIS_FE_CPU_LIMIT`:FE CPU 限制(默认值:1.00)
|
||||
- `DORIS_FE_MEMORY_LIMIT`:FE 内存限制(默认值:2G)
|
||||
- `DORIS_BE_CPU_LIMIT`:BE CPU 限制(默认值:2.00)
|
||||
- `DORIS_BE_MEMORY_LIMIT`:BE 内存限制(默认值:4G)
|
||||
|
||||
请查看 `.env.example` 获取所有可用选项。
|
||||
|
||||
## 架构
|
||||
|
||||
该部署包括:
|
||||
|
||||
- **Frontend(FE)**:处理查询规划、元数据管理和用户连接
|
||||
- **Backend(BE)**:执行查询并管理数据存储
|
||||
|
||||
## 文档
|
||||
|
||||
- [Apache Doris 官方文档](https://doris.apache.org/)
|
||||
- [快速入门指南](https://doris.apache.org/docs/get-starting/)
|
||||
- [SQL 参考](https://doris.apache.org/docs/sql-manual/)
|
||||
|
||||
## 许可证
|
||||
|
||||
Apache License 2.0
|
||||
@@ -0,0 +1,79 @@
|
||||
# Apache Doris Docker Compose
|
||||
# Doris is an OLAP database for modern analytics
|
||||
# Provides standalone mode with FE and BE nodes for development/testing
|
||||
|
||||
x-defaults: &defaults
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
|
||||
services:
|
||||
# Doris Frontend (FE) node
|
||||
doris-fe:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}apache/doris:${DORIS_VERSION:-3.0.0}-fe-x86_64
|
||||
hostname: doris-fe
|
||||
ports:
|
||||
- "${DORIS_FE_QUERY_PORT_OVERRIDE:-9030}:9030"
|
||||
- "${DORIS_FE_HTTP_PORT_OVERRIDE:-8030}:8030"
|
||||
- "${DORIS_FE_RPC_PORT_OVERRIDE:-9020}:9020"
|
||||
- "${DORIS_FE_EDIT_LOG_PORT_OVERRIDE:-9010}:9010"
|
||||
volumes:
|
||||
- doris_fe_data:/opt/apache-doris/fe/doris-meta
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
- FE_SERVERS=doris-fe:9010
|
||||
- FRONTEND_REPLICAS=1
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -sf http://localhost:8030/api/v2/system/info || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: ${DORIS_FE_CPU_LIMIT:-1.00}
|
||||
memory: ${DORIS_FE_MEMORY_LIMIT:-2G}
|
||||
reservations:
|
||||
cpus: ${DORIS_FE_CPU_RESERVATION:-0.50}
|
||||
memory: ${DORIS_FE_MEMORY_RESERVATION:-1G}
|
||||
|
||||
# Doris Backend (BE) node
|
||||
doris-be:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}apache/doris:${DORIS_VERSION:-3.0.0}-be-x86_64
|
||||
hostname: doris-be
|
||||
ports:
|
||||
- "${DORIS_BE_HEARTBEAT_PORT_OVERRIDE:-9050}:9050"
|
||||
- "${DORIS_BE_THRIFT_RPC_PORT_OVERRIDE:-9060}:9060"
|
||||
- "${DORIS_BE_HTTP_PORT_OVERRIDE:-8040}:8040"
|
||||
volumes:
|
||||
- doris_be_data:/opt/apache-doris/be/storage
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
- FE_SERVERS=doris-fe:9010
|
||||
depends_on:
|
||||
doris-fe:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -sf http://localhost:8040/api/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: ${DORIS_BE_CPU_LIMIT:-2.00}
|
||||
memory: ${DORIS_BE_MEMORY_LIMIT:-4G}
|
||||
reservations:
|
||||
cpus: ${DORIS_BE_CPU_RESERVATION:-1.00}
|
||||
memory: ${DORIS_BE_MEMORY_RESERVATION:-2G}
|
||||
|
||||
volumes:
|
||||
doris_fe_data:
|
||||
doris_be_data:
|
||||
Reference in New Issue
Block a user