Migrating to Seafile server 13

Hi, i’m looking to switch from seafile-server 12 to seafile-server 13. Up till now i’ve been running a bare metal installation. I want to upgrade, but the community edition only supports docker now.

There are no instructions on how to migrate to a docker installation. As of right now i have a server with a small ssd that holds the os, and a large raid array for data. Maria DB and the seafile-data file have been configured to reside on the Raid disks… and i’d like to keep it that way. these libraries can get quite big.

How do i upgrade my install to a docker install? Is it possible to not use a docker version of MySql and just connect to my current database?

Can i force seafile-server to use my raid array instead of… wherever docker stores it’s data.
I’m not very skilled with docker. haven’t touched it till today and this seems like a daunting task.

Update: I found some documentation about migrating to docker… but i’m still confused. It talks about using two different machines. I only have one file server. It says there’s notes for upgrading on the same machine but i didnt really see any

secondly… it insists on ‘shutting down’ the old nginx and mysql db. Multilple applications run on this server with Nginx acting as a proxy for each of them. Seafile usually runs on port 8003. So i just direct traffic to that port. Could i proxy to the docker container somehow? also having a new separate database for seafile is unacceptable. I cant be storing my database data in /opt. the os ssd is too small. it needs to be stored under /mnt/storage/db so it can utilize my 16tb raid array.

Regarding the database part:

It is possible to not use a docker version of MySQL: you can find the documentation at: Deploy with an existing MySQL server - Seafile Admin Manual

Regarding the volumes part, you can use the directory in your raid disks for Seafile and MySQL volumes. Just change the environment variables: SEAFILE_VOLUME and SEAFILE_MYSQL_VOLUME. See more at Setup community edition - Seafile Admin Manual

Regarding Nginx: you can use your existing Nginx as proxy. See more at Use other reverse proxy - Seafile Admin Manual

I want to do something similar but considering how many hours it took me to migrate from Centos v7 (end of line) to Ubuntu and upgrade from v10 to v11 Pro, I’m not rushing to move into Docker. I’m still in therapy!

1 Like