Skip to content

Commit

Permalink
doc: README.md tiny improve (#2331)
Browse files Browse the repository at this point in the history
  • Loading branch information
aroundabout authored and imbajin committed Nov 10, 2023
1 parent 8115325 commit 785afe0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hugegraph-server/hugegraph-dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Certainly we can only deploy server without other instance. Additionally, if we want to manage other HugeGraph-related instances with `server` in a single file, we can deploy HugeGraph-related instances via `docker-compose up -d`. The `docker-compose.yaml` is as below:

```yaml
version: '3'
Expand All @@ -27,16 +27,14 @@ If you want to **pre-load** some (test) data or graphs in container(by default),

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 /path/to/yourScript:/hugegraph/scripts/example.groovy hugegraph/hugegraph`
to start hugegraph server.

2. 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. [example.groovy](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-dist/src/assembly/static/scripts/example.groovy) is a pre-defined script. If needed, we can mount a new `example.groovy` to preload different data:

```yaml
version: '3'
Expand Down

0 comments on commit 785afe0

Please sign in to comment.