haiwen / seafile-docker

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

Custom MySQL user, other than root #197

Closed akopper closed 5 months ago

akopper commented 4 years ago

Currently it's only possible to connect to a mysql instance as root.

ghost commented 4 years ago

Yes, it would be great to be able to configure an external database server.

metawave commented 2 years ago

Agreed, not safe anyway to have the root password of a component in a configuration. Currently, running it with custom /scripts/utils.py mounted, so I could replace the user in https://github.com/haiwen/seafile-docker/blob/d20a40767de91c20adbe576e79ee8586428051a6/scripts_8.0/utils.py#L271

freeplant commented 5 months ago

The root user and password can be removed after the initial setup (creating the database tables and the seafile database user). External database is also supported in the latest version.

https://manual.seafile.com/docker/deploy_seafile_with_docker/#use-an-existing-mysql-server