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
Copy file name to clipboardexpand all lines: README.md
+15-13
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,24 @@ Billions of vertices and edges can be easily stored into and queried from HugeGr
30
30
31
31
## Quick Start
32
32
33
-
### 1. Download Way
33
+
### 1. Docker Way (Convenient for Test)
34
+
35
+
We can use `docker run -itd --name=graph -p 8080:8080 hugegraph/hugegraph` to quickly start an inner
36
+
HugeGraph server with `RocksDB` (in backgrounds) for **test/dev**.
37
+
You can visit [doc page](https://hugegraph.apache.org/docs/quickstart/hugegraph-server/#3-deploy) or the [README](hugegraph-server/hugegraph-dist/docker/READEME.md) for more details.
38
+
39
+
> Note:
40
+
>
41
+
> 1. The docker image of hugegraph is a convenience release, but not **official distribution** artifacts. You can find more details from [ASF Release Distribution Policy](https://infra.apache.org/release-distribution.html#dockerhub).
42
+
>
43
+
> 2. Recommand to use `release tag`(like `1.2.0`) for the stable version. Use `latest` tag to experience the newest functions in development.
44
+
45
+
### 2. Download Way
34
46
35
47
Visit [Download Page](https://hugegraph.apache.org/docs/download/download/) and refer the [doc](https://hugegraph.apache.org/docs/quickstart/hugegraph-server/#32-download-the-binary-tar-tarball)
36
48
to download the latest release package and start the server.
37
49
38
-
### 2. Source Building Way
50
+
### 3. Source Building Way
39
51
40
52
Visit [Source Building Page](https://hugegraph.apache.org/docs/quickstart/hugegraph-server/#33-source-code-compilation) and follow the
41
53
steps to build the source code and start the server.
@@ -49,21 +61,11 @@ And here are links of other **HugeGraph** component/repositories:
We can use `docker run -itd --name=graph -p 8080:8080 hugegraph/hugegraph` to quickly start an inner
55
-
HugeGraph server with `RocksDB` (in backgrounds) for **test/dev**.
56
-
You can visit [doc page](https://hugegraph.apache.org/docs/quickstart/hugegraph-server/#3-deploy) or the [README](hugegraph-server/hugegraph-dist/docker/READEME.md) for more details.
57
64
58
-
> Note:
59
-
>
60
-
> 1. The docker image of hugegraph is a convenience release, but not **official distribution** artifacts. You can find more details from [ASF Release Distribution Policy](https://infra.apache.org/release-distribution.html#dockerhub).
61
-
>
62
-
> 2. Recommand to use `release tag`(like `1.0.0`) for the stable version. Use `latest` tag to experience the newest functions in development.
63
65
64
66
## License
65
67
66
-
HugeGraph is licensed under Apache 2.0 License.
68
+
HugeGraph is licensed under [Apache 2.0 License](LICENSE).
Copy file name to clipboardexpand all lines: hugegraph-server/hugegraph-dist/docker/README.md
+27-4
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@
4
4
>
5
5
> 1. The docker image of hugegraph is a convenience release, not official distribution artifacts from ASF. You can find more details from [ASF Release Distribution Policy](https://infra.apache.org/release-distribution.html#dockerhub).
6
6
>
7
-
> 2. Recommand to use `release tag`(like `1.0.0`) for the stable version. Use `latest` tag to experience the newest functions in development.
7
+
> 2. Recommand to use `release tag`(like `1.2.0`) for the stable version. Use `latest` tag to experience the newest functions in development.
8
8
9
9
## 1. Deploy
10
10
11
11
We can use docker to quickly start an inner HugeGraph server with RocksDB in background.
12
12
13
13
1. Using docker run
14
14
15
-
Use `docker run -itd --name=graph -p 18080:8080 hugegraph/hugegraph` to start hugegraph server.
15
+
Use `docker run -itd --name=graph -p 8080:8080 hugegraph/hugegraph` to start hugegraph server.
16
16
17
17
2. Using docker compose
18
18
@@ -35,7 +35,7 @@ If you want to customize the pre-loaded data, please mount the the groovy script
35
35
36
36
1. Using docker run
37
37
38
-
Use `docker run -itd --name=graph -p 18080:8080 -e PRELOAD=true -v /path/to/yourScript:/hugegraph/scripts/example.groovy hugegraph/hugegraph`
38
+
Use `docker run -itd --name=graph -p 8080:8080 -e PRELOAD=true -v /path/to/yourScript:/hugegraph/scripts/example.groovy hugegraph/hugegraph`
39
39
to start hugegraph server.
40
40
41
41
2. Using docker compose
@@ -57,4 +57,27 @@ If you want to customize the pre-loaded data, please mount the the groovy script
57
57
58
58
3. Using start-hugegraph.sh
59
59
60
-
If you deploy HugeGraph server without docker, you can also pass arguments using `-p`, like this: `bin/start-hugegraph.sh -p true`.
60
+
If you deploy HugeGraph server without docker, you can also pass arguments using `-p`, like this: `bin/start-hugegraph.sh -p true`.
61
+
62
+
## 3. Enable Authentication
63
+
64
+
1. Using docker run
65
+
66
+
Use `docker run -itd --name=graph -p 8080:8080 -e AUTH=true -e PASSWORD=123456 hugegraph/hugegraph` to enable the authentication and set the password with `-e AUTH=true -e PASSWORD=123456`.
67
+
68
+
2. Using docker compose
69
+
70
+
Similarly, we can set the envionment variables in the docker-compose.yaml:
0 commit comments