Files
compose-anything/src/oceanbase/README.md
Sun-ZhenXing ece59b42bf Add environment configuration and documentation for various services
- Created .env.example files for Kafka, Kibana, KodBox, Kong, Langfuse, Logstash, n8n, Nginx, OceanBase, OpenCoze, RocketMQ, TiDB, and TiKV.
- Added README.md and README.zh.md files for OceanBase, RocketMQ, TiDB, and TiKV, detailing usage, configuration, and access instructions.
- Implemented docker-compose.yaml files for OceanBase, RocketMQ, TiDB, and TiKV, defining service configurations, health checks, and resource limits.
- Included broker.conf for RocketMQ to specify broker settings.
- Established a consistent timezone (UTC) across all services.
- Provided optional port overrides in .env.example files for flexibility in deployment.
2025-10-22 11:46:50 +08:00

1.2 KiB

OceanBase

OceanBase is a distributed relational database developed by Ant Group. It features high availability, high scalability, and is compatible with MySQL.

Usage

docker compose up -d

Configuration

Key environment variables:

  • OB_ROOT_PASSWORD: Root user password (default: oceanbase)
  • OB_TENANT_NAME: Tenant name (default: test)
  • OB_TENANT_PASSWORD: Tenant password (default: oceanbase)
  • OB_MEMORY_LIMIT: Memory limit (default: 8G, minimum: 8G)
  • OB_DATAFILE_SIZE: Data file size (default: 10G)
  • OB_LOG_DISK_SIZE: Log disk size (default: 6G)

Ports

  • 2881: MySQL protocol port
  • 2882: RPC port

Connection

Connect using MySQL client:

mysql -h127.0.0.1 -P2881 -uroot@test -poceanbase

Or connect to sys tenant:

mysql -h127.0.0.1 -P2881 -uroot -poceanbase

Notes

  • OceanBase requires at least 8GB of memory to run properly
  • First startup may take several minutes to initialize
  • Use slim mode for development/testing environments
  • For production, consider using normal mode and a dedicated cluster

References