Skip to content

Commit 879a31b

Browse files
committed
doc(docker): add docker usage into README files; add a docker-compose file
1 parent cadf1f0 commit 879a31b

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

vermeer/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
## Introduction
44
Vermeer is a high-performance distributed graph computing platform based on memory, supporting more than 15 graph algorithms, custom algorithm extensions, and custom data source access.
55

6+
## Run with Docker
7+
8+
Pull the image:
9+
```
10+
docker pull hugegraph/vermeer:latest
11+
```
12+
13+
Create local configuration files, for example, `~/master.ini` and `~/worker.ini`.
14+
15+
Run with Docker. The `--env` flag specifies the file name.
16+
17+
```
18+
master: docker run -v ~/:/go/bin/config hugegraph/vermeer --env=master
19+
worker: docker run -v ~/:/go/bin/config hugegraph/vermeer --env=worker
20+
```
21+
22+
We've also provided a `docker-compose` file. Once you've created `~/master.ini` and `~/worker.ini`, and updated the `master_peer` in `worker.ini` to `172.20.0.10:6689`, you can run it using the following command:
23+
24+
```
25+
docker-compose up -d
26+
```
27+
628
## Start
729

830
```

vermeer/README.zh-CN.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
## 简介
44
Vermeer是一个基于内存的高性能分布式图计算平台,支持15+图算法。支持自定义算法扩展,支持自定义数据源接入。
55

6+
## 基于 Docker 运行
7+
8+
拉取镜像
9+
```
10+
docker pull hugegraph/vermeer:latest
11+
```
12+
13+
创建好本地配置文件,例如`~/master.ini``~/worker.ini`
14+
15+
基于docker运行,其中`--env`指定的是文件名称。
16+
```
17+
master: docker run -v ~/:/go/bin/config hugegraph/vermeer --env=master
18+
worker: docker run -v ~/:/go/bin/config hugegraph/vermeer --env=worker
19+
```
20+
21+
我们也提供了`docker-compose`文件,当创建好`~/master.ini``~/worker.ini`,将`worker.ini`中的`master_peer`修改为`172.20.0.10:6689`后,即可通过以下命令运行:
22+
```
23+
docker-compose up -d
24+
```
25+
626
## 运行
727

828
```

vermeer/docker-compose.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: '3.8'
2+
3+
services:
4+
vermeer-master:
5+
image: hugegraph/vermeer
6+
container_name: vermeer-master
7+
volumes:
8+
- ~/:/go/bin/config # Change here to your actual config path
9+
command: --env=master
10+
networks:
11+
vermeer_network:
12+
ipv4_address: 172.20.0.10 # Assign a static IP for the master
13+
14+
vermeer-worker:
15+
image: hugegraph/vermeer
16+
container_name: vermeer-worker
17+
volumes:
18+
- ~/:/go/bin/config # Change here to your actual config path
19+
command: --env=worker
20+
networks:
21+
vermeer_network:
22+
ipv4_address: 172.20.0.11 # Assign a static IP for the worker
23+
24+
networks:
25+
vermeer_network:
26+
driver: bridge
27+
ipam:
28+
config:
29+
- subnet: 172.20.0.0/24 # Define the subnet for your network

0 commit comments

Comments
 (0)