haiwen / seafile-docker

A Docker image for Seafile server
Other
544 stars 184 forks source link

MySQL Custom Port Support #166

Closed jfranzb closed 5 years ago

jfranzb commented 5 years ago

Although Seafile itself supports having the database on a seperate port than 3306 the start.py script calls the function wait_for_mysql which checks for the database on port 3306. https://github.com/haiwen/seafile-docker/blob/d2a57818dbcf10557eb118897c7976794637dcb9/scripts/utils/__init__.py#L268 that traps the server in an endless loop if the database server runs on 3307.

Is it possible to change the start.py script so that one can disable the wait_for_mysql or even better make the function get the port via an environment variable?

I know this repo is meant for a compose setup with a db container that runs maria on 3306 but it would be nice to allow the seafile server to use an external db running on a non default port.