---
title: "Deploy dufs"
description: "Dufs is a lightweight self-hosted file server with a web UI"
category: "Storage"
url: https://railway.com/deploy/dufs
---

# Deploy dufs

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

**[Deploy dufs on Railway](https://railway.com/template/dufs)**

- **Creator:** koukyo_huang's Projects
- **Category:** Storage
- **Total deploys:** 2

## Template content

### dufs

- **Image:** sigoden/dufs:latest
- **Health check:** /__dufs__/health
- **Public domain:** Yes

## Documentation

# Deploy and Host Dufs on Railway

## About Hosting

[Dufs](https://github.com/sigoden/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

| 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 |



## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/dufs
