Seafile: setting up your own private cloud

From Alpine Linux
Jump to: navigation, search


Seafile is like ownCloud, but with client side encryption. There are clients for Linux, Windows, OSX, Android, IOS and web. Seahub is the web interface but for some other functionalities (like setup, management, ...) seafile needs seahub too.


Currently seafile, seahub and some of their dependencies are still in testing, so you will need to add testing to your repo.

install everything (highly recommended)

apk add seahub

install only seafile-server (not recommended, unless you know what you are doing)

apk add seafile-server


Using the default instance

cd /var/lib/seafile/default

sudo -u seafile seafile-admin setup

sudo -u seafile seafile-admin create-admin

check the options in


Using non default instance

 export SEA_USER=clouduser
 export SEA_INSTANCE=mycloud
 sudo -u $SEA_USER mkdir /var/lib/seafile/"$SEA_INSTANCE"
 sudo -u $SEA_USER mkdir /var/lib/seafile/"$SEA_INSTANCE"/seafile-server
 sudo cp -aR /usr/share/seafile/scripts /var/lib/seafile/"$SEA_INSTANCE"
 sudo cp -u $SEA_USER -aR /usr/share/seahub /var/lib/seafile/"$SEA_INSTANCE"/seafile-server
 cd /var/lib/seafile/"$SEA_INSTANCE"
 sudo -u $SEA_USER seafile-admin setup
 sudo -u $SEA_USER seafile-admin create-admin

make init.d script and conf.d

 cd /etc/init.d/
 sudo ln -s seafile seafile."$SEA_INSTANCE"
 sudo ln -s seahub seahub."$SEA_INSTANCE"
 cd /etc/conf.d/
 sudo cp seafile seafile."$SEA_INSTANCE"
 sudo cp seahub seahub."$SEA_INSTANCE"

change user and group and check options in



with seahub

sudo /etc/init.d/seahub start

seafile server only

sudo /etc/init.d/seafile start

or append ."$SEA_INSTANCE" if you are using a non default instance.