# Self-host SeaweedFS

> A distributed file and object store with an S3 gateway, built for billions of small files.

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

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 3.99

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| s3 | chrislusf/seaweedfs | 3.99 | 8333 | none |
| seaweedfs | chrislusf/seaweedfs | 3.99 | 9333, 8888 | seaweedfs_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| s3 | S3_ACCESS_KEY | generated |
| s3 | S3_SECRET_KEY | generated |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/seaweedfs/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 SeaweedFS 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 seaweedfs for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image chrislusf/seaweedfs:3.99, chrislusf/seaweedfs:3.99 is what you deploy there.

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