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: docs/en/installation/docker/index.md
+49-1Lines changed: 49 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,55 @@ docker run -d \
173
173
-e RUSTFS_TLS_PATH=/certs \
174
174
```
175
175
176
-
## 5. Verification and Access
176
+
### Docker Compose Installation
177
+
178
+
RustFS officially provides a Docker Compose installation method. The [`docker-compose.yml`](https://github.com/rustfs/rustfs/blob/main/docker-compose.yml) file includes multiple services, such as `grafana`, `prometheus`, `otel-collector`, and `jaeger`, mainly for observability. If you want to deploy these services together, clone the [RustFS code repository](https://github.com/rustfs/rustfs) locally,
179
+
180
+
```
181
+
git clone git@github.com:rustfs/rustfs.git
182
+
```
183
+
184
+
Running the command under root directory,
185
+
186
+
```
187
+
docker compose --profile observability up -d
188
+
```
189
+
190
+
Started containers is as below,
191
+
192
+
```
193
+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
194
+
c13c23fe3d9d rustfs/rustfs:latest "/entrypoint.sh rust…" 6 seconds ago Up 5 seconds (health: starting) 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp rustfs-server
195
+
e3f4fc4a83a2 grafana/grafana:latest "/run.sh" 7 seconds ago Up 5 seconds 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp grafana
196
+
71ef1b8212cf prom/prometheus:latest "/bin/prometheus --c…" 7 seconds ago Up 5 seconds 0.0.0.0:9090->9090/tcp, :::9090->9090/tcp prometheus
197
+
e7db806b2d6f jaegertracing/all-in-one:latest "/go/bin/all-in-one-…" 7 seconds ago Up 5 seconds 4317-4318/tcp, 9411/tcp, 0.0.0.0:14250->14250/tcp, :::14250->14250/tcp, 14268/tcp, 0.0.0.0:16686->16686/tcp, :::16686->16686/tcp jaeger
198
+
1897830a2f1e otel/opentelemetry-collector-contrib:latest "/otelcol-contrib --…" 7 seconds ago Up 5 seconds 0.0.0.0:4317-4318->4317-4318/tcp, :::4317-4318->4317-4318/tcp, 0.0.0.0:8888-8889->8888-8889/tcp, :::8888-8889->8888-8889/tcp, 55679/tcp otel-collector
199
+
```
200
+
201
+
If you only want to install rustfs, do not want to deploy grafana,prometheus,etc, please comment below lines in `docker-compose.yml` file,
202
+
203
+
```
204
+
#depends_on:
205
+
# - otel-collector
206
+
```
207
+
208
+
Then, run the command,
209
+
210
+
```
211
+
docker compose -f docker-compose.yml up -d rustfs
212
+
```
213
+
214
+
This way will only install and start `rustfs-server` service, namely rustfs container,
215
+
216
+
```
217
+
docker ps
218
+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
219
+
e07121ecdd39 rustfs/rustfs:latest "/entrypoint.sh rust…" 2 seconds ago Up 1 second (health: starting) 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp rustfs-server
220
+
```
221
+
222
+
Whether you start only the `rustfs-server` or together with observability services, you can access the RustFS instance via `http://localhost:9000` using the default username and password (`rustfsadmin` for both).
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
221
+
e07121ecdd39 rustfs/rustfs:latest "/entrypoint.sh rust…" 2 seconds ago Up 1 second (health: starting) 0.0.0.0:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp rustfs-server
0 commit comments