Self-host Seafile on a VPS
Self-hosted file sync and share with real file-level versioning and client-side encryption options.
levelrail-cli templates deploy seafile --name my-seafileSpecification
- Status
- Listed
- Category
- Storage
- Services
- mariadb, memcached, seafile
- Ports
- 80
- Volumes
- 2
- Memory
- about 1 GiB
- arm64
- image published
- amd64
- image published
- Settings to fill in
- none
About Seafile
Self-hosted file sync and share with real file-level versioning and client-side encryption options. Runs 3 containers (mariadb, memcached, seafile), with seafile listening on port 80 and keeps its data in named volumes.
What it deploys
Seafile runs as 3 services in a single Compose app, listening on port 80, with 2 named volume mounts.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| mariadb | mariadb | 11 | none | seafile_mariadb_data -> /var/lib/mysql |
| memcached | memcached | latest | none | none |
| seafile | seafileltd/seafile-mc | 13.0.28 | 80 | seafile_data -> /shared |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
- Host ports. It publishes port 80 directly on the host, so open them in the VPS firewall only if you want that.
- Review. Image is not pinned to a version tag, so a redeploy can pull different code (memcached:latest).
Settings and environment
You do not have to fill in anything. 8 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| mariadb | MYSQL_DATABASE | Preset by the template |
| mariadb | MYSQL_PASSWORD | Generated at deploy |
| mariadb | MYSQL_ROOT_PASSWORD | Generated at deploy |
| mariadb | MYSQL_USER | Generated at deploy |
| seafile | CACHE_PROVIDER | Preset by the template |
| seafile | INIT_SEAFILE_ADMIN_EMAIL | Preset by the template |
| seafile | INIT_SEAFILE_ADMIN_PASSWORD | Generated at deploy |
| seafile | INIT_SEAFILE_MYSQL_ROOT_PASSWORD | Generated at deploy |
| seafile | JWT_PRIVATE_KEY | Generated at deploy |
| seafile | MEMCACHED_HOST | Preset by the template |
| seafile | MEMCACHED_PORT | Preset by the template |
| seafile | SEAFILE_MYSQL_DB_CCNET_DB_NAME | Preset by the template |
| seafile | SEAFILE_MYSQL_DB_HOST | Preset by the template |
| seafile | SEAFILE_MYSQL_DB_PASSWORD | Generated at deploy |
| seafile | SEAFILE_MYSQL_DB_PORT | Preset by the template |
| seafile | SEAFILE_MYSQL_DB_SEAFILE_DB_NAME | Preset by the template |
| seafile | SEAFILE_MYSQL_DB_SEAHUB_DB_NAME | Preset by the template |
| seafile | SEAFILE_MYSQL_DB_USER | Generated at deploy |
| seafile | SEAFILE_SERVER_HOSTNAME | Preset by the template |
| seafile | SEAFILE_SERVER_PROTOCOL | Preset by the template |
| seafile | TIME_ZONE | Preset by the template |
Install Seafile on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get seafile -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy seafile --name my-seafile
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Seafile.
Docs and upstream
More in Storage
- SeaweedFSA distributed file and object store with an S3 gateway, built for billions of small files.
- RustFSAn S3-compatible object storage server written in Rust, with a web console. One container serves the S3 API on port 9000 and the console on port 9001. Access and secret keys are generated at install time.
- SFTPGoAn SFTP, FTP/S, and WebDAV server with a web admin UI and per-user storage backends.
- SyncthingContinuous, peer-to-peer file synchronization between your own devices, no cloud in between.
- Pingvin ShareA self-hosted, ad-free alternative to WeTransfer for sending files with expiring links.
- PicoShareMinimalist file sharing service for sending large files by link with an optional expiry. A generated shared secret protects the upload page.