# Self-host Dufs

> A tiny file server with uploads, downloads, search and WebDAV over one login. Apache-2.0 licensed. The admin password is generated for you.

- Page: https://levelrail.com/templates/dufs/
- JSON: https://levelrail.com/templates/dufs.json
- Category: Storage
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/sigoden/dufs
- Upstream docs: https://github.com/sigoden/dufs

## Requirements
- Memory: about 32 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v0.47.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| dufs | sigoden/dufs | v0.47.0 | 5000 | data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| dufs | DUFS_ALLOW_ALL | preset |
| dufs | DUFS_AUTH | generated |
| dufs | DUFS_SERVE_PATH | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy dufs --name my-dufs
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/dufs/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## First run
1. Sign in as admin with the generated password, then upload and share files, or mount the same address as WebDAV.

## Questions

### Can I deploy Dufs on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Dufs, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image sigoden/dufs:v0.47.0 is what you deploy there.

Self-host Dufs, Dufs docker compose file, deploy Dufs on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
