Skip to content

Commit d9cdf7d

Browse files
committed
docs: update docker examples to use latest tag and add server README docker section
1 parent a852cf5 commit d9cdf7d

4 files changed

Lines changed: 23 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ flowchart TB
174174

175175
```bash
176176
# Start HugeGraph with Docker
177-
docker run -itd --name=hugegraph -p 8080:8080 hugegraph/hugegraph:1.7.0
177+
docker run -itd --name=hugegraph -p 8080:8080 hugegraph/hugegraph:latest
178178

179179
# Verify server is running
180180
curl http://localhost:8080/apis/version
@@ -198,13 +198,13 @@ Docker is the quickest way to get started for **testing or development**:
198198

199199
```bash
200200
# Basic usage
201-
docker run -itd --name=hugegraph -p 8080:8080 hugegraph/hugegraph:1.7.0
201+
docker run -itd --name=hugegraph -p 8080:8080 hugegraph/hugegraph:latest
202202

203203
# With sample graph preloaded
204-
docker run -itd --name=hugegraph -e PRELOAD=true -p 8080:8080 hugegraph/hugegraph:1.7.0
204+
docker run -itd --name=hugegraph -e PRELOAD=true -p 8080:8080 hugegraph/hugegraph:latest
205205

206206
# With authentication enabled
207-
docker run -itd --name=hugegraph -e PASSWORD=your_password -p 8080:8080 hugegraph/hugegraph:1.7.0
207+
docker run -itd --name=hugegraph -e PASSWORD=your_password -p 8080:8080 hugegraph/hugegraph:latest
208208
```
209209

210210
For advanced Docker configurations, see:

docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ docker compose -f docker-compose-3pd-3store-3server.yml down -v
8888
2. **Store nodes** start after all PD nodes are healthy
8989
3. **Server nodes** start after all Store nodes are healthy
9090

91-
This ensures Raft leader election and partition assignment complete before dependent services attempt connections.
91+
This ensures PD and Store are healthy before the server starts. The server entrypoint still performs a best-effort partition wait after launch, so partition assignment may take a little longer.
9292

9393
**Verify the cluster is healthy**:
9494

hugegraph-pd/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ docker run -d -p 8620:8620 -p 8686:8686 -p 8610:8610 \
331331
hugegraph-pd:latest
332332
333333
# For production clusters, use Docker Compose or Kubernetes
334-
# See: docker/docker-compose-3pd-3store-3server.yml and docker/README.md
334+
# See: ../docker/docker-compose-3pd-3store-3server.yml and ../docker/README.md
335335
```
336336

337337
Exposed ports: 8620 (REST), 8686 (gRPC), 8610 (Raft)

hugegraph-server/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,20 @@ HugeGraph Server consists of two layers of functionality: the graph engine layer
99

1010
- Storage Layer:
1111
- Storage Backend: Supports multiple built-in storage backends (RocksDB/Memory/HStore/HBase/...) and allows users to extend custom backends without modifying the existing source code.
12+
13+
## Docker
14+
15+
### Standalone Mode
16+
```bash
17+
docker run -itd --name=hugegraph -p 8080:8080 hugegraph/hugegraph:latest
18+
```
19+
20+
### Distributed Mode (PD + Store + Server)
21+
22+
For a full distributed deployment, use the compose file at the repository root:
23+
```bash
24+
cd docker
25+
docker compose -f docker-compose-3pd-3store-3server.yml up -d
26+
```
27+
28+
See [docker/README.md](../docker/README.md) for the full setup guide.

0 commit comments

Comments
 (0)