From bd1e66d03ead20f9abf10ebcd9612f3bdd23bfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A2=E4=B9=90=E9=A9=AC?= <38058090+SkywalkerSpace@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:16:33 +0800 Subject: [PATCH 1/3] Use an existing mysql-server --- manual/docker/deploy_seafile_with_docker.md | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/manual/docker/deploy_seafile_with_docker.md b/manual/docker/deploy_seafile_with_docker.md index 20cdeee3..0562ab63 100644 --- a/manual/docker/deploy_seafile_with_docker.md +++ b/manual/docker/deploy_seafile_with_docker.md @@ -104,6 +104,34 @@ seafile: ``` +### Use an existing mysql-server + +If you want to use an existing mysql-server, you can modify the `docker-compose.yml` as follows + +```yml +services: + #db: + #image: mariadb:10.11 + #... + + seafile: + ... + environment: + ... + - DB_HOST=192.168.0.2 + - DB_ROOT_PASSWD=mysql_root_password + ... + depends_on: + #- db + - memcached +``` + +* The entire db chapter needs to be removed +* The host of MySQL (DB_HOST) +* The password of MySQL root (DB_ROOT_PASSWD) +* db in depends_on chapter needs to be removed +* When Seafile is installed, the user `seafile` will be used to connect to the mysql-server (in conf/seafile.conf). You can remove the `DB_ROOT_PASSWD`. + ### Modify Seafile server configurations The config files are under `shared/seafile/conf`. You can modify the configurations according to [Seafile manual](https://manual.seafile.com/) From 6d5432dd422d293b093552bce91c6333f3b9536e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A2=E4=B9=90=E9=A9=AC?= <38058090+SkywalkerSpace@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:20:58 +0800 Subject: [PATCH 2/3] pro Use an existing mysql-server --- .../deploy_seafile_pro_with_docker.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/manual/docker/pro-edition/deploy_seafile_pro_with_docker.md b/manual/docker/pro-edition/deploy_seafile_pro_with_docker.md index e04d570b..b6f13c1f 100644 --- a/manual/docker/pro-edition/deploy_seafile_pro_with_docker.md +++ b/manual/docker/pro-edition/deploy_seafile_pro_with_docker.md @@ -217,6 +217,34 @@ seafile: ``` +## Use an existing mysql-server + +If you want to use an existing mysql-server, you can modify the `docker-compose.yml` as follows + +```yml +services: + #db: + #image: mariadb:10.11 + #... + + seafile: + ... + environment: + ... + - DB_HOST=192.168.0.2 + - DB_ROOT_PASSWD=mysql_root_password + ... + depends_on: + #- db + - memcached +``` + +* The entire db chapter needs to be removed +* The host of MySQL (DB_HOST) +* The password of MySQL root (DB_ROOT_PASSWD) +* db in depends_on chapter needs to be removed +* When Seafile is installed, the user `seafile` will be used to connect to the mysql-server (in conf/seafile.conf). You can remove the `DB_ROOT_PASSWD`. + ## Seafile directory structure ### `/shared` From 90e74af501b349917bf281475d03149c96573598 Mon Sep 17 00:00:00 2001 From: Daniel Pan Date: Fri, 26 Jan 2024 22:57:06 +0800 Subject: [PATCH 3/3] Update deploy_seafile_with_docker.md --- manual/docker/deploy_seafile_with_docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/docker/deploy_seafile_with_docker.md b/manual/docker/deploy_seafile_with_docker.md index 0562ab63..d6ffa4b0 100644 --- a/manual/docker/deploy_seafile_with_docker.md +++ b/manual/docker/deploy_seafile_with_docker.md @@ -130,7 +130,7 @@ services: * The host of MySQL (DB_HOST) * The password of MySQL root (DB_ROOT_PASSWD) * db in depends_on chapter needs to be removed -* When Seafile is installed, the user `seafile` will be used to connect to the mysql-server (in conf/seafile.conf). You can remove the `DB_ROOT_PASSWD`. +* DB_ROOT_PASSWD is needed during installation. Later, after Seafile is installed, the user `seafile` will be used to connect to the mysql-server (in conf/seafile.conf). You can remove the `DB_ROOT_PASSWD`. ### Modify Seafile server configurations