imbajin commented on code in PR #423: URL: https://github.com/apache/incubator-hugegraph-doc/pull/423#discussion_r2533202523
########## content/cn/docs/quickstart/computing/hugegraph-vermeer.md: ########## @@ -16,6 +16,144 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量 ### 1.2 运行方法 +1. **方案一:Docker Compose(推荐)** + +确保docker-compose.yaml存在于您的项目根目录中。如果没有,以下是一个示例: +```yaml +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +version: '3.8' + +services: + vermeer-master: + image: hugegraph/vermeer + container_name: vermeer-master + volumes: + - ~/:/go/bin/config # Change here to your actual config path + command: --env=master + networks: + vermeer_network: + ipv4_address: 172.20.0.10 # Assign a static IP for the master + + vermeer-worker: + image: hugegraph/vermeer + container_name: vermeer-worker + volumes: + - ~/:/go/bin/config # Change here to your actual config path + command: --env=worker + networks: + vermeer_network: + ipv4_address: 172.20.0.11 # Assign a static IP for the worker + +networks: + vermeer_network: + driver: bridge + ipam: + config: + - subnet: 172.20.0.0/24 # Define the subnet for your network +``` + +修改 docker-compose.yaml +- **Volume**:例如将两处 ~/:/go/bin/config 改为 /home/user/config:/go/bin/config(或您自己的配置目录)。 Review Comment: ⚠️ **静态IP配置说明不完整** 文档中使用了静态IP(`172.20.0.10`, `172.20.0.11`)但没有解释: 1. 为什么需要静态IP 2. 这些IP与配置文件中的设置如何对应 3. Worker 如何通过此IP连接到 Master 建议在第71-72行后添加说明: ```markdown > **注意**: 静态IP用于确保 Worker 能稳定连接到 Master。请确保配置文件(如 `worker.yaml`)中的 `master` 地址设置为 `172.20.0.10:端口号`。 ``` ########## content/cn/docs/quickstart/computing/hugegraph-vermeer.md: ########## @@ -16,6 +16,144 @@ master 是负责通信、转发、汇总的节点,计算量和占用资源量 ### 1.2 运行方法 +1. **方案一:Docker Compose(推荐)** + +确保docker-compose.yaml存在于您的项目根目录中。如果没有,以下是一个示例: +```yaml +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +version: '3.8' + +services: + vermeer-master: + image: hugegraph/vermeer + container_name: vermeer-master + volumes: + - ~/:/go/bin/config # Change here to your actual config path + command: --env=master + networks: + vermeer_network: + ipv4_address: 172.20.0.10 # Assign a static IP for the master + + vermeer-worker: + image: hugegraph/vermeer + container_name: vermeer-worker + volumes: + - ~/:/go/bin/config # Change here to your actual config path + command: --env=worker + networks: + vermeer_network: + ipv4_address: 172.20.0.11 # Assign a static IP for the worker + +networks: + vermeer_network: + driver: bridge + ipam: + config: + - subnet: 172.20.0.0/24 # Define the subnet for your network +``` + +修改 docker-compose.yaml Review Comment: ⚠️ **配置目录结构说明缺失** 文档要求用户提供配置目录,但没有说明: 1. 配置目录应包含哪些文件(master.yaml? worker.yaml?) 2. 配置文件的基本结构或示例 3. 关键配置项(如端口、存储路径等) 建议在第71行前添加配置说明章节或链接到配置示例。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
