You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: content/en/docs/quickstart/computing/hugegraph-vermeer.md
+67-15Lines changed: 67 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,22 +18,75 @@ The framework's runtime configuration can be passed via command-line parameters
18
18
19
19
1.**Option 1: Docker Compose (Recommended)**
20
20
21
-
Ensure docker-compose.yaml exists in your project directory. If not, you'll need to create one based on the project's docker-compose.yaml template.
21
+
Please ensure that `docker-compose.yaml` exists in your project root directory. If it doesn't, here is an example:
22
+
23
+
```yaml
24
+
#
25
+
# Licensed to the Apache Software Foundation (ASF) under one or more
26
+
# contributor license agreements. See the NOTICE file distributed with
27
+
# this work for additional information regarding copyright ownership.
28
+
# The ASF licenses this file to You under the Apache License, Version 2.0
29
+
# (the "License"); you may not use this file except in compliance with
30
+
# the License. You may obtain a copy of the License at
31
+
#
32
+
# http://www.apache.org/licenses/LICENSE-2.0
33
+
#
34
+
# Unless required by applicable law or agreed to in writing, software
35
+
# distributed under the License is distributed on an "AS IS" BASIS,
36
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
37
+
# See the License for the specific language governing permissions and
38
+
# limitations under the License.
39
+
#
40
+
41
+
version: '3.8'
42
+
43
+
services:
44
+
vermeer-master:
45
+
image: hugegraph/vermeer
46
+
container_name: vermeer-master
47
+
volumes:
48
+
- ~/:/go/bin/config # Change here to your actual config path
49
+
command: --env=master
50
+
networks:
51
+
vermeer_network:
52
+
ipv4_address: 172.20.0.10 # Assign a static IP for the master
53
+
54
+
vermeer-worker:
55
+
image: hugegraph/vermeer
56
+
container_name: vermeer-worker
57
+
volumes:
58
+
- ~/:/go/bin/config # Change here to your actual config path
59
+
command: --env=worker
60
+
networks:
61
+
vermeer_network:
62
+
ipv4_address: 172.20.0.11 # Assign a static IP for the worker
63
+
64
+
networks:
65
+
vermeer_network:
66
+
driver: bridge
67
+
ipam:
68
+
config:
69
+
- subnet: 172.20.0.0/24 # Define the subnet for your network
70
+
```
71
+
72
+
Modify `docker-compose.yaml`
22
73
23
-
Modify the volume in `docker-compose.yaml`, for example, changing the two instances of `~/:/go/bin/config` to `/home/user/config:/go/bin/config` (or your own configuration directory).
24
-
Build the image and start up in the project directory (or use `docker build` first, then `docker-compose up`)
74
+
- **Volume**: For example, change both instances of `~/:/go/bin/config` to `/home/user/config:/go/bin/config` (or your own configuration directory).
75
+
- **Subnet**: Modify the subnet IP based on your actual situation. Note that the ports each container needs to access are specified in the config file. Please refer to the contents of the project's `config` folder for details.
76
+
77
+
Build the Image and Start in the Project Directory (or `docker build` first, then `docker-compose up`)
25
78
26
79
```shell
27
-
# Build the image (in the project root 'vermeer' directory)
80
+
# Build the image (in the project root vermeer directory)
28
81
docker build -t hugegraph/vermeer .
29
82
30
-
# Start up (in the directory containing docker-compose.yaml)
83
+
# Start the services (in the vermeer root directory)
31
84
docker-compose up -d
32
85
# Or use the new CLI:
33
86
# docker compose up -d
34
87
```
35
88
36
-
View logs / Stop / Remove:
89
+
View Logs / Stop / Remove
37
90
38
91
```shell
39
92
docker-compose logs -f
@@ -42,7 +95,7 @@ docker-compose down
42
95
43
96
2. **Option 2: Start individually via `docker run` (Manually create network and assign static IP)**
44
97
45
-
Ensure the CONFIG_DIR has proper read/execute permissions for the Docker process (e.g., chmod 755 CONFIG_DIR).
98
+
Ensure the CONFIG_DIR has proper read/execute permissions for the Docker process.
0 commit comments