doc: add docker-compose guide and update deployment docs#455
doc: add docker-compose guide and update deployment docs#455imbajin merged 17 commits intoapache:masterfrom
Conversation
|
BTW, we could only update the EN version during the review-period, then sync the CN version in the final stage |
|
Updated all EN files pinned HUGEGRAPH_VERSION=1.7.0 on all compose commands, updated image references from :latest to 1.7.0, and removed the stale clone workaround notes. CN sync can be done in the final stage. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| #### 3.2 Compile from source | ||
|
|
||
| ```bash | ||
| # 1. Clone the source code |
There was a problem hiding this comment.
In “3.2 Compile from source”, step 1 says “Clone the source code” but the git clone https://github.com/apache/hugegraph.git command is missing, so the following cd hugegraph step can’t be followed as written. Please add the clone command back or adjust the steps.
| # 1. Clone the source code | |
| # 1. Clone the source code | |
| git clone https://github.com/apache/hugegraph.git |
| #### 3.2 Compile from source | ||
|
|
||
| ```bash | ||
| # 1. Clone the source code |
There was a problem hiding this comment.
# 1. Clone the source code, but the actual git clone ... command was removed, so the later cd hugegraph and mvn ... steps are no longer runnable as written. Please restore the clone command or change the text to make the pre-cloned assumption explicit.
| # 1. Clone the source code | |
| git clone https://github.com/apache/hugegraph.git |
Almost LGTM now, after all EN docs addressed comments, sync the CN doc together |
…ctions, fix front matter typo
…git clone in source build
|
Synced all CN files to match EN pinned HUGEGRAPH_VERSION=1.7.0 on all compose commands, updated image references from :latest to 1.7.0, restored git clone in source build sections, and fixed docker-compose.dev.yml filename. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 15 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I'll check the CN version ASAP |
EN files are all set, let me know if they look good and I'll sync the CN side. |
Revise Chinese and English docs for HugeGraph Docker deployment to standardize on Docker Compose wording and usage. Add notes that users should clone/pull the HugeGraph repo (or at least the docker/ directory), include a reminder to keep the HUGEGRAPH_VERSION aligned with releases, and adjust memory recommendations for Mac (3-node cluster ~12 GB) with platform guidance. Clarify compose file descriptions, emphasize container hostnames for HG_* env vars, change some example log years to 2026, reformat deprecated-alias lines, and number/troubleshooting items for clarity. Minor phrasing and section-title tweaks across hugegraph-docker-cluster.md, hugegraph-hstore.md, hugegraph-pd.md, and hugegraph-server.md (EN & CN). Signed-off-by: imbajin <jin@apache.org>
5a2373b to
f454c8c
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 13 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 1. PD nodes start first and must pass the `/v1/health` check | ||
| 2. Store nodes start only after all PD nodes are healthy | ||
| 3. Server nodes start last, after all PD and Store nodes are healthy | ||
|
|
||
| Verify that the cluster is healthy: | ||
| ```bash | ||
| curl http://localhost:8620/v1/health # PD health | ||
| curl http://localhost:8520/v1/health # Store health | ||
| curl http://localhost:8080/versions # Server | ||
| curl http://localhost:8620/v1/stores # Registered stores | ||
| curl http://localhost:8620/v1/partitions # Partition assignment |
There was a problem hiding this comment.
This guide uses /v1/health for PD/Store health checks, but the existing quickstart docs for PD/Store verification use /actuator/health (e.g. content/en/docs/quickstart/hugegraph/hugegraph-pd.md:186 and hugegraph-hstore.md:270). Please clarify which endpoint is correct for Docker deployments (and/or document both) to avoid confusion.
| 1. PD nodes start first and must pass the `/v1/health` check | |
| 2. Store nodes start only after all PD nodes are healthy | |
| 3. Server nodes start last, after all PD and Store nodes are healthy | |
| Verify that the cluster is healthy: | |
| ```bash | |
| curl http://localhost:8620/v1/health # PD health | |
| curl http://localhost:8520/v1/health # Store health | |
| curl http://localhost:8080/versions # Server | |
| curl http://localhost:8620/v1/stores # Registered stores | |
| curl http://localhost:8620/v1/partitions # Partition assignment | |
| 1. PD nodes start first and must pass the Docker Compose health check (`/v1/health` in this guide) | |
| 2. Store nodes start only after all PD nodes are healthy | |
| 3. Server nodes start last, after all PD and Store nodes are healthy | |
| > **Health endpoint note**: In the Docker Compose deployment documented here, PD and Store are checked via `/v1/health`. Some other HugeGraph quickstart documents use `/actuator/health` for PD/Store verification. If you are comparing guides or using a different image/version, verify which endpoint your deployment exposes; for the compose files in this guide, start with `/v1/health`. | |
| Verify that the cluster is healthy: | |
| ```bash | |
| curl http://localhost:8620/v1/health # PD health (Docker Compose in this guide) | |
| curl http://localhost:8620/actuator/health # PD health (seen in some other docs/images) | |
| curl http://localhost:8520/v1/health # Store health (Docker Compose in this guide) | |
| curl http://localhost:8520/actuator/health # Store health (seen in some other docs/images) | |
| curl http://localhost:8080/versions # Server | |
| curl http://localhost:8620/v1/stores # Registered stores | |
| curl http://localhost:8620/v1/partitions # Partition assignment |
Cleanup and wording/formatting improvements across HugeGraph quickstart docs (CN/EN) for hugegraph-hstore, hugegraph-pd and hugegraph-server. Changes include: normalize “macOS” and Docker/Docker Hub terminology; clarify Java 11/JDK guidance and authentication requirements; rephrase HugeGraph-Server naming and startup/preload descriptions for clarity; update PD config comment for initial-store-count; add/standardize PD API curl example and expanded Store JSON example; improve Docker/Docker Compose examples (including mounting example.groovy and notes about Docker Desktop memory); fix punctuation, grammar and minor layout issues. Signed-off-by: imbajin <jin@apache.org>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Demote the "Docker Distributed Cluster" section heading from H4 to H6 in both English and Chinese quickstart pages to correct the document hierarchy and formatting (files updated: content/en/docs/quickstart/hugegraph/hugegraph-server.md and content/cn/docs/quickstart/hugegraph/hugegraph-server.md). Signed-off-by: imbajin <jin@apache.org>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
imbajin
left a comment
There was a problem hiding this comment.
Enhanced some desc & merge it now
Revise Chinese and English docs for HugeGraph Docker deployment to standardize on Docker Compose wording and usage. Add notes that users should clone/pull the HugeGraph repo (or at least the docker/ directory), include a reminder to keep the HUGEGRAPH_VERSION aligned with releases, and adjust memory recommendations for Mac (3-node cluster ~12 GB) with platform guidance. Clarify compose file descriptions, emphasize container hostnames for HG_* env vars, change some example log years to 2026, reformat deprecated-alias lines, and number/troubleshooting items for clarity. Minor phrasing and section-title tweaks across hugegraph-docker-cluster.md, hugegraph-hstore.md, hugegraph-pd.md, and hugegraph-server.md (EN & CN). --------- Signed-off-by: imbajin <jin@apache.org> Co-authored-by: imbajin <jin@apache.org> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> 1fda07c
Purpose of the PR
Follow-up documentation update for apache/hugegraph#2952 which migrated Docker cluster setup from
network_mode: hostto Docker bridge networking.Related PR: apache/hugegraph#2952
The doc repo had no wrong content — it simply never documented the Docker-based distributed cluster setup at all. This PR adds that missing documentation.
Main Changes
content/en/docs/guides/hugegraph-docker-cluster.md— new standalone Docker cluster guide covering single-node and 3-node setup, fullHG_*env var reference tables, port reference, health checks, and troubleshootingcontent/cn/docs/guides/hugegraph-docker-cluster.md— Chinese mirrorhugegraph-server.md(EN + CN) — fix Docker README URL, replace outdated inline compose yaml with references to newdocker/files, add 3-node cluster Docker quickstart inside section 5.1.1, add auth notehugegraph-pd.md(EN + CN) — add section 3.3 Docker Deployment withHG_PD_*env var reference tablehugegraph-hstore.md(EN + CN) — add section 3.3 Docker Deployment withHG_STORE_*env var reference table, add section 6.3 Docker cluster quickstart