haiwen / seafile-docker

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

Custom MySQL Port #191

Closed tafoya closed 5 months ago

tafoya commented 4 years ago

Is there an environment variable to specify a custom MySQL port?

notSoWiseOldMan commented 3 years ago

From a quick look at the code there doesn't appear to be. I would be interested in this feature as well.

notSoWiseOldMan commented 3 years ago

Looks like it can be set but the startup script hard codes the port when waiting for the db to come up.

It looks like env is just passed to setup-seafile-mysql.py here. Would it be as simple as adding 'MYSQL_PORT': get_conf('DB_PORT','3306'), to env and updating the wait function to read from the environment?

notSoWiseOldMan commented 3 years ago

Looks like someone even made a PR already: https://github.com/haiwen/seafile-docker/pull/161

freeplant commented 5 months ago

It is supported in the latest version: https://manual.seafile.com/docker/deploy_seafile_with_docker/#use-an-existing-mysql-server