Levelrail
Skip to content

Self-host Seafile with Docker ​

Self-hosted file sync and share with real file-level versioning and client-side encryption options.

This page describes the Levelrail template for Seafile (Storage). It deploys the services below as one Docker Compose app on your own server.

Project site: https://manual.seafile.com.

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
mariadbmariadb:11none
seafile_mariadb_data -> /var/lib/mysql
memcachedmemcached:latestnonenone
seafileseafileltd/seafile-mc:13.0.2880
seafile_data -> /shared

Environment variables ​

ServiceVariableValue
mariadbMYSQL_DATABASEPreset in the template
mariadbMYSQL_PASSWORDGenerated at deploy
mariadbMYSQL_ROOT_PASSWORDGenerated at deploy
mariadbMYSQL_USERGenerated at deploy
seafileDB_HOSTPreset in the template
seafileDB_PASSWORDGenerated at deploy
seafileDB_PORTPreset in the template
seafileDB_ROOT_PASSWDGenerated at deploy
seafileDB_USERGenerated at deploy
seafileINIT_SEAFILE_ADMIN_EMAILPreset in the template
seafileINIT_SEAFILE_ADMIN_PASSWORDGenerated at deploy
seafileJWT_PRIVATE_KEYGenerated at deploy
seafileSEAFILE_SERVER_HOSTNAMEPreset in the template
seafileSEAFILE_SERVER_PROTOCOLPreset in the template
seafileTIME_ZONEPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Seafile with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Seafile. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy seafile --name my-seafile

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Storage templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.