Deploy dufs
Railway

Deploy dufs

Dufs is a lightweight self-hosted file server with a web UI

Deploy dufs

Just deployed

/data

Deploy and Host Dufs on Railway

About Hosting

Dufs is a single-binary file server written in Rust. It serves files through a browser UI, supports uploads, WebDAV, resumable transfers, search, and optional access control. On Railway, the clean deployment model is to run the official Docker image sigoden/dufs:latest as a single service and mount a persistent volume at /data so uploaded files survive redeployments.

This template mirrors the Docker Compose pattern dufs /data -A by setting DUFS_SERVE_PATH=/data and DUFS_ALLOW_ALL=true. That means the deployed service is publicly writable unless you change the defaults.

Why Deploy

  • Official upstream image with no custom Dockerfile required
  • Very small runtime footprint and no external database
  • Browser UI, WebDAV, upload, search, and resumable transfer support in one service
  • Persistent Railway volume keeps uploaded files across restarts and redeployments
  • Easy to harden later with DUFS_AUTH and more granular permission flags

Common Use Cases

  • Personal cloud drive for quickly uploading and downloading files
  • Lightweight team dropbox for sharing build artifacts or documents
  • Simple WebDAV endpoint for syncing tools and desktop clients
  • Public or semi-public file distribution with a searchable web interface

Dependencies for Deployment

Deployment Dependencies

DependencyDetails
Docker Imagesigoden/dufs:latest
Container Port5000
Persistent Volume/data
Health Check/__dufs__/health
Required Env VarsPORT, DUFS_PORT, DUFS_SERVE_PATH
Recommended Env VarsDUFS_BIND, DUFS_ALLOW_ALL
Optional Auth Env VarsDUFS_AUTH
DatabaseNone

Template Content

More templates in this category

View Template
Postgres Backup to Cloudflare R2 (S3-Compatible)
Automated PostgreSQL backups to S3-compatible storage with encryption

Aman
View Template
ReadySet
A lightweight caching engine for Postgres

Milo
View Template
Simple S3
Deploy a S3-compatible storage service with a pre-named bucket.

Joey Chilson