Hostinger Black Friday deal: VPS hosting up to 70% off
Ad

Try describing what you need:

RustFS logo

RustFS

★ 36.6k
Apache License 2.0Open Source — No Paywall10 Containers — 10 containers — heavy hosting footprintK8s · HelmNo external DB13+ active committers (12mo)

About

RustFS is an open-source distributed object storage system written in Rust. It is designed for organizations that need scalable storage for data lakes, AI, and big data workloads, while also...

Community Ratings

No ratings yet

Features

  • Distributed and single-node storage modes
  • S3-compatible object storage
  • OpenStack Swift API
  • Object versioning and WORM object lock
  • Server-side encryption and KMS
  • Lifecycle management and remote S3 tiering
  • Bucket and site replication
  • IAM policies and OIDC/SSO
  • Web console
  • Audit logging and observability

Details

Last Updated
Nov 29, 2026
Created
Nov 23, 2023
Install Methods
kuberneteshelm
Authentication
oidc-sso
Privacy & Independence
No TelemetryCloud: Optional
User Model
Multi-UserMulti-Tenant
Deployment

Deployment: Docker Compose ✓10 Containers — heavy hosting footprintRuns as 10 containers

Run RustFS yourself

Pick how much you want to manage.

5 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.

Is this your project? Sponsor a listing

Run RustFS with Docker Compose

Compose file from the RustFS project repository.

10 services · infra: nginx · 7 unclassified (busybox, tempo, opentelemetry-collector-contrib, jaeger, prometheus, loki, grafana)

no resource limits declared

needs persistent storage (20 volumes)

docker-compose.yml · @ c269a12 · scanned Nov 26, 2026

# Copyright 2024 RustFS Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

services:
  # RustFS main service
  rustfs:
    security_opt:
      - "no-new-privileges:true"
    image: rustfs/rustfs:latest
    container_name: rustfs-server
    build:
      context: .
      dockerfile: Dockerfile.source
      args:
        TARGETPLATFORM: linux/amd64
    ports:
      - "9000:9000" # S3 API port
      - "9001:9001" # Console port
    environment:
      - RUSTFS_VOLUMES=/data/rustfs{0..3} # Define 4 storage volumes
      - RUSTFS_ADDRESS=0.0.0.0:9000
      - RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
      - RUSTFS_CONSOLE_ENABLE=true
      - RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
      # SECURITY: these defaults are public and well-known.
      # Override via env vars before exposing the listener beyond localhost.
      - RUSTFS_ACCESS_KEY=${RUSTFS_ACCESS_KEY:-rustfsadmin}
      - RUSTFS_SECRET_KEY=${RUSTFS_SECRET_KEY:-rustfsadmin}
      - RUSTFS_OBS_LOGGER_LEVEL=info
      - RUSTFS_TLS_PATH=/opt/tls
      - RUSTFS_OBS_ENDPOINT=http://otel-collector:4318
      - OTEL_RESOURCE_ATTRIBUTES=${OTEL_RESOURCE_ATTRIBUTES:-rustfs.cluster.id=rustfs-dev}
    volumes:
      - ./deploy/data/pro:/data
      - ./deploy/logs:/app/logs
      # TLS configuration directory.
      # Place at least:
      # - /opt/tls/ca.crt
      # - /opt/tls/rustfs_cert.pem
      # - /opt/tls/rustfs_key.pem
      - ./deploy/data/certs/:/opt/tls
      # Permission baseline:
      # - default RustFS runtime user is 10001:10001
      # - ensure host mounts are writable by that user, or run with host-matched user
    networks:
      - rustfs-network
    restart: unless-stopped
    healthcheck:
      # Default behavior:
      # - HTTP when RUSTFS_TLS_PATH is unset
      # - HTTPS when RUSTFS_TLS_PATH is set
      # - loopback TLS uses `-k` unless strict host+CA values are provided
      #
      # Strict TLS example:
      # - set RUSTFS_HEALTHCHECK_HOST to a SAN-covered hostname
      # - optionally set RUSTFS_HEALTHCHECK_CA (defaults to /opt/tls/ca.crt when present)
      test:
        [
          "CMD",
          "sh", "-ec",
          "host=\"$${RUSTFS_HEALTHCHECK_HOST:-127.0.0.1}\"; scheme=\"http\"; set -- -fsS; \
          if [ -n \"$${RUSTFS_TLS_PATH:-}\" ]; then \
            scheme=\"https\"; \
            ca_path=\"$${RUSTFS_HEALTHCHECK_CA:-}\"; \
            if [ -z \"$${ca_path}\" ] && [ -f /opt/tls/ca.crt ]; then ca_path=/opt/tls/ca.crt; fi; \
            case \"$${host}\" in 127.0.0.1|localhost) strict_host=false ;; *) strict_host=true ;; esac; \
            if [ \"$${strict_host}\" = true ] && [ -n \"$${ca_path}\" ]; then \
              set -- \"$${@}\" --cacert \"$${ca_path}\" --resolve \"$${host}:9000:127.0.0.1\" --resolve \"$${host}:9001:127.0.0.1\"; \
            else \
              set -- \"$${@}\" -k; \
            fi; \
          fi; \
          curl \"$${@}\" \"$${scheme}://$${host}:9000/health\" && \
          curl \"$${@}\" \"$${scheme}://$${host}:9001/rustfs/console/health\""
        ]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s
    depends_on:
      otel-collector:
        condition: service_started
        required: false

  # Development environment
  rustfs-dev:
    image: rustfs/rustfs:devenv
    container_name: rustfs-dev
    build:
      context: .
      dockerfile: Dockerfile.source
      target: dev
      # Pure development environment
    ports:
      - "9010:9000" # S3 API port  
      - "9011:9001" # Console port
    environment:
      - RUSTFS_VOLUMES=/data/rustfs{0..3}
      - RUSTFS_ADDRESS=0.0.0.0:9000
      - RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
      - RUSTFS_CONSOLE_ENABLE=true
      - RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
      - RUSTFS_ACCESS_KEY=devadmin
      - RUSTFS_SECRET_KEY=devadmin
      - RUSTFS_OBS_LOGGER_LEVEL=debug
      - RUSTFS_OBS_LOG_DIRECTORY=/logs
    volumes:
      - .:/app # Mount source code to /app for development
      - cargo_registry:/usr/local/cargo/registry # Mount cargo registry to avoid re-downloading
      - ./deploy/data/dev:/data
    networks:
      - rustfs-network
    restart: unless-stopped
    healthcheck:
      test:
        [
          "CMD",
          "sh", "-ec",
          "host=\"$${RUSTFS_HEALTHCHECK_HOST:-127.0.0.1}\"; scheme=\"http\"; set -- -fsS; \
          if [ -n \"$${RUSTFS_TLS_PATH:-}\" ]; then \
            scheme=\"https\"; \
            ca_path=\"$${RUSTFS_HEALTHCHECK_CA:-}\"; \
            if [ -z \"$${ca_path}\" ] && [ -f /opt/tls/ca.crt ]; then ca_path=/opt/tls/ca.crt; fi; \
            case \"$${host}\" in 127.0.0.1|localhost) strict_host=false ;; *) strict_host=true ;; esac; \
            if [ \"$${strict_host}\" = true ] && [ -n \"$${ca_path}\" ]; then \
              set -- \"$${@}\" --cacert \"$${ca_path}\" --resolve \"$${host}:9000:127.0.0.1\" --resolve \"$${host}:9001:127.0.0.1\"; \
            else \
              set -- \"$${@}\" -k; \
            fi; \
          fi; \
          curl \"$${@}\" \"$${scheme}://$${host}:9000/health\" && \
          curl \"$${@}\" \"$${scheme}://$${host}:9001/rustfs/console/health\""
        ]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s
    profiles:
      - dev

  # --- Observability Stack ---

  tempo-init:
    image: busybox:latest
    command: [ "sh", "-c", "chown -R 10001:10001 /var/tempo" ]
    volumes:
      - tempo_data:/var/tempo
    user: root
    networks:
      - rustfs-network
    restart: "no"
    profiles:
      - observability

  tempo:
    image: grafana/tempo:2.10.5
    user: "10001"
    command: [ "-config.file=/etc/tempo.yaml" ]
    volumes:
      - ./.docker/observability/tempo.yaml:/etc/tempo.yaml:ro
      - tempo_data:/var/tempo
    ports:
      - "3200:3200" # tempo
      - "4317"      # otlp grpc
      - "4318"      # otlp http
    restart: unless-stopped
    networks:
      - rustfs-network
    profiles:
      - observability

  otel-collector:
    image: otel/opentelemetry-collector-contrib:latest
    container_name: otel-collector
    command:
      - --config=/etc/otelcol-contrib/otel-collector.yml
    volumes:
      - ./.docker/observability/otel-collector-config.yaml:/etc/otelcol-contrib/otel-collector.yml:ro
    ports:
      - "1888:1888"   # pprof
      - "8888:8888"   # Prometheus metrics for Collector
      - "8889:8889"   # Prometheus metrics for application indicators
      - "13133:13133" # health check
      - "4317:4317"   # OTLP gRPC
      - "4318:4318"   # OTLP HTTP
      - "55679:55679" # zpages
    networks:
      - rustfs-network
    restart: unless-stopped
    profiles:
      - observability
    depends_on:
      - tempo
      - jaeger
      - prometheus
      - loki

  jaeger:
    image: jaegertracing/jaeger:latest
    container_name: jaeger
    environment:
      - TZ=Asia/Shanghai
      - SPAN_STORAGE_TYPE=badger
      - BADGER_EPHEMERAL=false
      - BADGER_DIRECTORY_VALUE=/badger/data
      - BADGER_DIRECTORY_KEY=/badger/key
      - COLLECTOR_OTLP_ENABLED=true
    volumes:
      - jaeger_data:/badger
    ports:
      - "16686:16686" # Web UI
      - "14269:14269" # Admin/Metrics
    networks:
      - rustfs-network
    restart: unless-stopped
    profiles:
      - observability

  prometheus:
    image: prom/prometheus:latest
    container_name: prometheus
    ports:
      - "9090:9090"
    volumes:
      - ./.docker/observability/prometheus.yml:/etc/prometheus/prometheus.yml:ro
      - prometheus_data:/prometheus
    command:
      - "--config.file=/etc/prometheus/prometheus.yml"
      - "--storage.tsdb.path=/prometheus"
      - "--storage.tsdb.retention.time=30d"
      - "--web.enable-lifecycle"
      - "--web.enable-otlp-receiver"
      - "--web.enable-remote-write-receiver"
    networks:
      - rustfs-network
    restart: unless-stopped
    profiles:
      - observability

  loki:
    image: grafana/loki:latest
    container_name: loki
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - ./.docker/observability/loki.yaml:/etc/loki/local-config.yaml:ro
      - loki_data:/loki
    ports:
      - "3100:3100"
    command: -config.file=/etc/loki/local-config.yaml
    networks:
      - rustfs-network
    restart: unless-stopped
    profiles:
      - observability

  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    ports:
      - "3000:3000"
    environment:
      - GF_SECURITY_ADMIN_USER=admin
      - GF_SECURITY_ADMIN_PASSWORD=admin
      - GF_INSTALL_PLUGINS=grafana-pyroscope-datasource
    volumes:
      - grafana_data:/var/lib/grafana
      - ./.docker/observability/grafana/provisioning:/etc/grafana/provisioning:ro
      - ./.docker/observability/grafana/dashboards:/etc/grafana/dashboards:ro
    networks:
      - rustfs-network
    restart: unless-stopped
    profiles:
      - observability
    depends_on:
      - prometheus
      - tempo
      - loki

  # NGINX reverse proxy (optional)
  nginx:
    security_opt:
      - "no-new-privileges:true"
    image: nginx:alpine
    container_name: nginx-proxy
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
      - ./.docker/nginx/ssl:/etc/nginx/ssl:ro
    tmpfs:
      - /var/run
      - /var/cache/nginx
      - /var/log/nginx
    networks:
      - rustfs-network
    restart: unless-stopped
    read_only: true
    profiles:
      - proxy
    depends_on:
      - rustfs

networks:
  rustfs-network:
    driver: bridge
    ipam:
      config:
        - subnet: 172.20.0.0/16

volumes:
  rustfs_data_0:
    driver: local
  rustfs_data_1:
    driver: local
  rustfs_data_2:
    driver: local
  rustfs_data_3:
    driver: local
  rustfs_dev_data:
    driver: local
  prometheus_data:
    driver: local
  grafana_data:
    driver: local
  tempo_data:
    driver: local
  loki_data:
    driver: local
  jaeger_data:
    driver: local
  logs:
    driver: local
  cargo_registry:
    driver: local

This file may be out of date. Check the RustFS documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Nov 26, 2026

Alternatives to RustFS

SeaweedFS logo

SeaweedFS

36.3k
SeaweedFS is a distributed file system that provides an S3 object store, a POSIX file system, and a lakehouse storage layer over the same data.
File & Object StoragePermissive LicenseSelf Hosting Solutions
3 Containers
Details
hs5 logo

hs5

202
HS5 is a self-hosted, high-performance single-node S3-compatible object storage service with a built-in web interface for bucket and user management.
File & Object StorageSelf Hosting Solutions
Single Container
Details
Zenko CloudServer logo

Zenko CloudServer

2.0k
An open-source Amazon S3-compatible object storage server that can emulate S3 locally or act as an abstraction layer over multiple storage backends.
File & Object StorageSelf Hosting SolutionsPermissive License
Details
versitygw logo

versitygw

3.2k
A high-performance S3 translation gateway that turns local filesystem or other storage backends into an S3-compatible server.
File & Object StorageProxy ServersSelf Hosting Solutions
4 ContainersOpen Core
Details
GarageHQ logo

GarageHQ

181
Geo-distributed, S3‑compatible storage service that can fulfill many needs.
File & Object StorageCopyleft LicenseSelf Hosting Solutions
Details

Related Software

s3-orchestrator logo

s3-orchestrator

86
s3-orchestrator provides a single S3-compatible endpoint that routes objects across multiple S3-compatible storage backends.
File & Object Storage
11 Containers
Details
walgit logo

walgit

2.7k
walgit is a Git server that stores repository data in an object store and serves repositories through a disposable local cache.
Self Hosting SolutionsFile & Object StorageAuthentication Services
2 Containers
Details
sftpgo Community Edition logo

sftpgo Community Edition

12.9k
A highly configurable event-driven file transfer solution supporting SFTP, HTTP/S, FTP/S, and WebDAV with multiple storage backends.
File & Object StorageCopyleft LicenseWeb File Managers+2
Open Core
Details
AList logo

AList

50.5k
A file-listing program that connects multiple storage services and provides a web interface for browsing, previewing, and managing files.
Web File ManagersFile & Object StorageFile Synchronization+2
Single Container
Details
Cloudreve logo

Cloudreve

29.0k
Cloudreve is a self-hosted file management system with multi-cloud storage support.
File SynchronizationCopyleft LicenseWeb File Managers+3
3 Containers
Details
Filestash logo

Filestash

14.9k
Filestash is a plugin-driven file management platform that provides a Dropbox-like web client and supports many storage protocols and file workflows.
Web File ManagersFile & Object StorageDocument Management+2
Details
restic logo

restic

37.5k
restic is a fast, efficient, and secure backup program for creating and restoring encrypted backups across multiple operating systems.
Digital ArchivingFile & Object Storage
Details
GoSƐ logo

GoSƐ

252
Modern file-uploader focusing on scalability and simplicity. It only depends on a S3 storage backend and hence scales horizontally without the need for additional databases or caches.
Simple File UploadsPermissive LicenseFile & Object Storage+1
Details
FileRise logo

FileRise

1.0k
FileRise is a self-hosted web file manager and storage hub with WebDAV, sharing, ACLs, uploads, and optional OnlyOffice and encryption features.
Web File ManagersPermissive LicenseFile & Object Storage+3
Open Core
Details
Safebucket logo

Safebucket

997
An open source file sharing platform with pluggable infrastructure where files bypass the server.
Simple File UploadsFile & Object StorageSelf Hosting Solutions+1
8 Containers
Details
Olares logo

Olares

5.4k
Olares is an open-source personal cloud operating system for running and managing private services locally on your own hardware.
Self Hosting SolutionsPlatform as a ServiceLocal LLMs+3
2 Containers
Details
Static Web Server logo

Static Web Server

2.4k
A cross-platform, high-performance web server for serving static files.
Web ServersFile & Object StorageSelf Hosting Solutions+1
Details