Seafile Server Update from 12 to 13

Hey,

i would like to update my docker based server from version 12 to 13.

As described in the update tutorial at first a docker compose down command is necessary.

As I’m not that confident with docker, from my point of view a docker compose stop should be enough and with docker compose down i would also remove the images and so it would lead to data loss.

Is my assumption right and a docker compose stop is sufficent?

Thanks in advance for your help.

You are partially correct. The docker-compose down will stop and remove the containers, but that shouldn’t remove your data. In the docker env file you set some variables like:

SEAFILE_VOLUME=/data/seafile/seafile-data
SEAFILE_MYSQL_VOLUME=/data/seafile/seafile-mysql/db

Those get used by parts of the docker container configs, like this one from seafile-server.yml:

    volumes:
      - ${SEAFILE_VOLUME:-/opt/seafile-data}:/shared

What that does is define a part of your system’s file system that gets shared with the container. So in this case, “/shared” inside the seafile container is the same as “/data/seafile/seafile-data” outside of the container.

The new version of seafile should use a new container pointing to the same data. So yes, you will remove the seafile container, and make a new one, losing any data from the old container’s image in the process. But any data from the old one that needs to live on (your data, databases, configurations, etc) should already be stored outside of the container, and so should not be lost.

1 Like