Skip to content

Commit b0b376a

Browse files
authored
docs: add docker multiple nodes option (#82)
remove line
1 parent 1bbcacb commit b0b376a

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

docs/installation/docker/index.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,33 @@ Whether you start only the `rustfs-server` or together with observability servic
257257

258258
If buckets can be successfully created and listed, deployment is effective.
259259

260-
## 5. Other Recommendations
260+
## 5. Multiple Nodes
261+
262+
Dockers default bridge networking does not support multi-node deployments. Use `--network host` so each container can communicate directly with other nodes.
263+
264+
Run the following on **each node**
265+
266+
```bash
267+
docker run -d \
268+
--name rustfs \
269+
--network host \
270+
-v /mnt/rustfs/data:/data \
271+
-e RUSTFS_ACCESS_KEY=rustfsadmin \
272+
-e RUSTFS_SECRET_KEY=rustfsadmin \
273+
-e RUSTFS_CONSOLE_ENABLE=true \
274+
-e RUSTFS_VOLUMES="http://node{1...4}:9000/data/rustfs{0...3}" \
275+
rustfs/rustfs:latest
276+
```
277+
278+
Add the entries to `/etc/hosts` on **every** node:
279+
```
280+
192.168.1.1 node1
281+
192.168.1.2 node2
282+
192.168.1.3 node3
283+
192.168.1.4 node4
284+
```
285+
286+
## 6. Other Recommendations
261287

262288
1. Production Environment Recommendations:
263289
- Use multi-node deployment architecture
@@ -274,5 +300,4 @@ Whether you start only the `rustfs-server` or together with observability servic
274300

275301
## Summary
276302

277-
This article combines RustFS single-node single-disk containerization best practices, demonstrating in detail how to build RustFS images through Docker and deploy SNSD environments.
278-
This solution is easy to quickly start and experiment with, and can later be extended to multi-node multi-disk production-level clusters on platforms like Kubernetes, Swarm, etc. using the same approach.
303+
This article explains how to deploy RustFS using Docker with best practices, starting with a single-node single-disk (SNSD) setup and then extending to a multi-node deployment option.

0 commit comments

Comments
 (0)