From c1ca266b50148133d7ce2385493d3aa3e1a50de8 Mon Sep 17 00:00:00 2001 From: imbajin Date: Fri, 4 Aug 2023 16:06:47 +0800 Subject: [PATCH] Update README.md --- hugegraph-dist/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hugegraph-dist/README.md b/hugegraph-dist/README.md index 068bd67590..9587c1a1d7 100644 --- a/hugegraph-dist/README.md +++ b/hugegraph-dist/README.md @@ -10,7 +10,7 @@ We can use docker to quickly start an inner HugeGraph server with RocksDB in bac 2. Using docker compose - We can also use `docker-compose up -d`. The docker-compose.yaml is below: + We can also use `docker-compose up -d`. The `docker-compose.yaml` is below: ```yaml version: '3' @@ -23,17 +23,18 @@ We can use docker to quickly start an inner HugeGraph server with RocksDB in bac ## 2. Create Sample Graph on Server Startup -If you want to pre-load some data or graphs in container, you can set the env `PRELOAD=ture` +If you want to **pre-load** some (test) data or graphs in container(by default), you can set the env `PRELOAD=ture` If you want to customize the pre-loaded data, please mount the the groovy scripts (not necessary). 1. Using docker run - Use `docker run -itd --name=graph -p 18080:8080 -e PRELOAD=true -v /yourscript:/hugegraph/scripts/example.groovy hugegraph/hugegraph` to start hugegraph server. + Use `docker run -itd --name=graph -p 18080:8080 -e PRELOAD=true -v /path/to/yourScript:/hugegraph/scripts/example.groovy hugegraph/hugegraph` + to start hugegraph server. -2. Using docker compose +3. Using docker compose - We can also use `docker-compose up -d` to quickly start. The docker-compose.yaml is below: + We can also use `docker-compose up -d` to quickly start. The `docker-compose.yaml` is below: ```yaml version: '3' @@ -46,4 +47,4 @@ If you want to customize the pre-loaded data, please mount the the groovy script - /path/to/yourscript:/hugegraph/scripts/example.groovy ports: - 18080:8080 - ``` \ No newline at end of file + ```