Deploy dufs
Dufs is a lightweight self-hosted file server with a web UI
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_AUTHand 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
| Dependency | Details |
|---|---|
| Docker Image | sigoden/dufs:latest |
| Container Port | 5000 |
| Persistent Volume | /data |
| Health Check | /__dufs__/health |
| Required Env Vars | PORT, DUFS_PORT, DUFS_SERVE_PATH |
| Recommended Env Vars | DUFS_BIND, DUFS_ALLOW_ALL |
| Optional Auth Env Vars | DUFS_AUTH |
| Database | None |
Template Content