OceanBase
English日本語简体中文
ドキュメントホーム
製品
エコシステム
リリース

データベース

OceanBase CloudOceanBaseデータベース

データベース

OceanBase CloudOceanBaseデータベース
OceanBase CloudOceanBaseデータベース

OceanBaseデータベース

  • エコシステム統合の概要
  • ORMフレームワーク
    • Java
      • SpringBootサンプルプログラム
      • SpringBatchサンプルプログラム
      • Spring JDBCサンプルプログラム
      • SpringDataJPAサンプルプログラム
      • Hibernateサンプルプログラム
      • MyBatisサンプルプログラム
    • Python
      • SQLAlchemyによるOceanBaseデータベース接続サンプルプログラム
      • peeweeによるOceanBaseデータベース接続サンプルプログラム
      • Tortoise ORM による OceanBase データベース接続サンプルプログラム
    • Go
      • GORMサンプルプログラム
    • Rust
      • SeaORM による OceanBase データベース接続サンプルプログラム
    • Ruby
      • ActiveRecordによるOceanBaseデータベース接続サンプルプログラム
      • Sequel で OceanBase データベースに接続するサンプルプログラム
      • Ruby on RailsによるOceanBaseデータベース接続サンプルプログラム
    • Node.js
      • SequelizeでOceanBaseデータベースに接続する
      • TypeORMを使用してOceanBaseデータベースに接続する
      • Prismaを使用してOceanBaseデータベースに接続する
      • Drizzle ORMを使用してOceanBaseデータベースに接続する
    • C#
      • Dapperを使用してOceanBaseデータベースに接続する
      • SqlSugarを使用してOceanBaseデータベースに接続する
      • FreeSQLを使用してOceanBaseデータベースに接続する
    • PHP
      • Yii 2.0 ORMサンプルプログラム
      • Laravel Eloquent ORMサンプルプログラム
  • データベースのバージョン管理
    • Liquibaseを使用したOceanBaseデータベースのバージョンの管理
    • Flywayを使用してOceanBaseデータベースを統合し、バージョン管理を実現する
  • データ統合
    • dbtを使用したOceanBaseデータの分析
    • Flink DirectLoadを使用したOceanBaseのダイレクトインポート
    • SeaTunnelを使用したOceanBaseデータの読み取りと同期
    • Maxwellを使用したOceanBaseデータの読み取り
    • Debeziumを使用してOceanBaseに接続し、データを取得する
    • Spark Catalogを使用してOceanBaseデータベースに接続する
    • Apache NiFiを使用してOceanBaseデータベースと統合する
  • SQL開発
    • WebLogicを使用してOceanBaseデータベースに接続する
    • DBeaverを使用してOceanBaseデータベースに接続する
    • Navicatを使用してOceanBaseデータベースに接続する
    • DataGripでOceanBaseデータベースに接続する
    • TablePlusでOceanBaseデータベースに接続する
    • DMSを使用したOceanBaseデータベースの管理
  • 編成とスケジューリング
    • AirflowとOceanBaseデータベースの連携
    • PowerJobとOceanBaseデータベースの連携
    • DolphinSchedulerにOceanBaseデータソースを設定する
    • LinkisとOceanBaseデータベースの統合
  • 可視化ツール
    • SupersetとOceanBaseを使用したデータ分析
    • Power BIでOceanBaseに接続してデータを取得する
    • Quick BIでOceanBaseに接続してデータを取得する
    • Bytebaseを使用したOceanBaseインスタンスの管理
  • データベース管理
    • NineDataを使用したOceanBaseデータソースの管理
    • Bytebaseを使用したOceanBaseインスタンスの管理
  • AI
    • OpenAI
    • Qwen
    • OceanBaseデータベースとLangChainの統合
    • OceanBaseデータベースのベクトル検索機能とLlamaIndexの連携
    • OceanBaseデータベースのベクトル検索機能とDifyの連携
    • OceanBaseデータベースとn8nの連携
    • OceanBase MCP ServerとTraeの連携
    • OceanBaseデータベースとSpring AI Alibabaの連携
    • OceanBase MCP ServerとClineの連携
    • OceanBase MCP ServerとCursorの連携
    • OceanBase MCP ServerとContinueの連携
    • Google GenAI Toolboxを使用して独自のOceanBase MCP Serverを構築する
    • OceanBaseデータベースとCamelAIの連携
    • OceanBase VectorとFirecrawlの連携
    • OceanBase VectorとHugging Faceの連携
    • OceanBase VectorとOllamaの連携
    • OceanBaseデータベースとGoogle Geminiの連携
    • OceanBase VectorとCloudflare Workers AIの連携
    • OceanBase VectorとJina AIの連携
    • OceanBase MCP ServerとAugment Codeの連携
    • OceanBase MCP ServerとClaude Codeの連携
    • OceanBase MCP ServerとKiroの連携

PDF をダウンロード

このページには現在中国語/日本語版がなく、英語版を表示しています。
ドキュメントフィードバック
  1. ドキュメントセンター
  2. OceanBaseデータベース
  3. master

Ghost integration with OceanBase Database

最終更新:2026-09-04 07:40:45

Compatibility
Prerequisites
Procedure
Step 1: Obtain the OceanBase Database connection string
Step 2: Create a database for Ghost
Step 3: Create a Docker Compose configuration file
Step 4: Deploy and start Ghost
Step 5: Access the Ghost blog
Verification

Ghost is an open-source publishing platform built on modern Node.js technology, designed for teams that require robust features, flexibility, and high performance. This topic explains how to deploy Ghost using Docker Compose and connect it to OceanBase Database as the backend storage, enabling persistent storage and management of blog content.

Compatibility

  • OceanBase Database version: ≥ V4.2.1
  • Ghost version: ≥ 5.0

Prerequisites

Before using Ghost, ensure the following conditions are met:

  • Docker and Docker Compose are installed. For installation instructions, refer to the Docker official documentation.
  • OceanBase Database has been deployed and a MySQL mode user tenant has been created.

Procedure

Step 1: Obtain the OceanBase Database connection string

Contact the OceanBase Database deployment personnel to obtain the connection string. For example:

obclient -h$host -P$port -u$user_name -p$password -D$database_name

Parameter description:

  • $host: The connection IP address. For ODP connections, use the ODP address; for direct connections, use the OBServer IP.

  • $port: The connection port. For ODP connections, the default is 2883; for direct connections, the default is 2881.

  • $database_name: The database name.

    Notice

    The user connecting to the tenant must have the CREATE, INSERT, DROP, and SELECT permissions on the database.

  • $user_name: The connection account. For ODP connections, the format is user@tenant#cluster or cluster:tenant:user; for direct connections, the format is user@tenant.

  • $password: The account password.

Example:

obclient -hxxx.xxx.xxx.xxx -P2881 -utest_user001@mysql001 -p****** -Dtest

Step 2: Create a database for Ghost

Create a database in OceanBase Database to store blog data for Ghost, for example, ghost_db.

CREATE DATABASE ghost_db;

After the execution is complete, record the database name for use in the Docker Compose configuration file.

Step 3: Create a Docker Compose configuration file

In your local working directory, create a docker-compose.yml file and configure Ghost to connect to OceanBase Database.

version: '3.8'

services:
  ghost:
    image: ghost:5-alpine
    container_name: ghost-blog
    restart: always
    ports:
      - "2368:2368"
    environment:
      database__client: mysql
      database__connection__host: $host
      database__connection__user: $user_name
      database__connection__password: $password
      database__connection__database: ghost_db
      database__connection__port: $port
      url: http://localhost:2368
      NODE_ENV: production
    volumes:
      - ./ghost-content:/var/lib/ghost/content
    network_mode: "bridge"

networks:
  default:
    external: false

Configuration parameter description:

  • database__client: mysql: Specifies to use the MySQL client to connect to OceanBase Database.
  • database__connection__host: The connection address of OceanBase Database.
  • database__connection__user: The username of OceanBase Database.
  • database__connection__password: The password of OceanBase Database.
  • database__connection__database: The database name (recommended: ghost_db).
  • database__connection__port: The port of OceanBase Database.

Step 4: Deploy and start Ghost

In the directory where docker-compose.yml is located, execute the following commands to pull the image and start the Ghost service.

  1. Pull the Ghost image:

    docker compose pull
    
  2. Start the Ghost service:

    docker compose up -d
    

After the commands are executed successfully, the Ghost container will start in the background.

Step 5: Access the Ghost blog

  1. Access the homepage: In your browser, enter http://host IP address:2368 to access the Ghost homepage.

    Note

    If you encounter a 502 error, check if the firewall within the instance is blocking the connection. You can disable the firewall.

  2. Access the management page: In your browser, enter http://host IP address:2368/ghost to access the Ghost management page.

    When you first access the Ghost management page, you need to complete the relevant configuration according to the prompts on the page. Please complete the configuration based on the actual prompts on the page.

Verification

After completing the above steps, you can verify if Ghost is running properly by following these methods:

  1. Check the container status:

    docker ps | grep ghost-blog
    
  2. View the container logs:

    docker logs ghost-blog
    
  3. Access the Ghost homepage and management page to confirm that they can be displayed and operated normally.

次のトピック

エコシステム統合の概要
次へ
このページの内容
Compatibility
Prerequisites
Procedure
Step 1: Obtain the OceanBase Database connection string
Step 2: Create a database for Ghost
Step 3: Create a Docker Compose configuration file
Step 4: Deploy and start Ghost
Step 5: Access the Ghost blog
Verification