[Working]Seafile Pro Deployed on Docker: Can I use an External DB?

Has anyone configured Seafile Pro running on docker to use an external DB? I’ve been thinking of migrating to one and am curious is anyone has tried this with any luck.


Ive been wrestling with this recently too. Have a go and let me know if you solve it please. I have an existing MariaDB up and running on my host I wanted to leverage too.


To anyone that wants to externalize their DB, this does seem to work without issue. I migrated an existing Docker/Kubernetes implementation of Seafile to a external MariaDB 10.1 server successfully. The following are the steps I took:

  1. Shutdown all services/containers except the DB
  2. Backup the existing DB using MariaDB-Backup per the following:
  3. Copy the backup to the new external MariaDB server
  4. Prepare and restore the DB to the new DB server using the same link from step 2
  5. Modify the configuration files to point to the new DB server, specifically:
    • seafile/conf/ccnet.conf
    • seafile/conf/seafile.conf
    • seafile/conf/seahub_settings.py
    • seafile/conf/seafevents.conf
    • For each of these files, there is a parameter that specifies the DB Host, change this to the IP/Hostname of the external DB server
  6. Restart the seafile services

Not sure if this type of deployment is officially supported, but so far so good! :smiley: