Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin authored Aug 4, 2023
1 parent f69b6e4 commit c1ca266
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions 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:
We can also use `docker-compose up -d`. The `docker-compose.yaml` is below:

```yaml
version: '3'
Expand All @@ -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'
Expand All @@ -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
```
```

0 comments on commit c1ca266

Please sign in to comment.