Docker with external MySQL DB

Hi,

we’ve been running seafile for some time now and we’re very happy with it. So far we managed the installation on a dedicated VM (Debian) but we really would like to move the service into a docker container.
Sadly the instructions only guides to create 3 containers: seafile, memcached and mysql.

We have a dedicated and replicated MySQL cluster which we would like to use, as it has failover concept and backup builtin.

The DB is actually already there, we would be glad if there was a way to just give the seafile container the env variables to connect to it.

Regards
junicast

Nevermind, I just found the instructions in the docs.
https://manual.seafile.com/docker/non_docker_to_docker/

Just in case someone else also needs this.