# Self-host SFTPGo

> An SFTP, FTP/S, and WebDAV server with a web admin UI and per-user storage backends.

- Page: https://levelrail.com/templates/sftpgo/
- JSON: https://levelrail.com/templates/sftpgo.json
- Category: Storage
- Licence: AGPL-3.0-only (Network copyleft (AGPL) license)
- Source: https://github.com/drakkan/sftpgo
- Upstream docs: https://docs.sftpgo.com/latest/

## Requirements
- Memory: about 128 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: v2.6.6

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| sftpgo | drakkan/sftpgo | v2.6.6 | 8080 | sftpgo_data -> /srv/sftpgo; sftpgo_home -> /var/lib/sftpgo |

## Deploy

### CLI

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

### API

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

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

## Questions

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

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id sftpgo for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image drakkan/sftpgo:v2.6.6 is what you deploy there.

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