update some variables setting (#528)

* update some variables setting

* Update setup_pro_by_docker.md

---------

Co-authored-by: Daniel Pan <freeplant@gmail.com>
This commit is contained in:
Huang Junxiang 2025-05-27 21:48:54 +08:00 committed by GitHub
parent b085e5962e
commit 6e82bcf544
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 16 deletions

View File

@ -17,6 +17,7 @@ The [`.env`](../repo/docker/pro/env) file will be used to specify the components
- `SEAFILE_ELASTICSEARCH_IMAGE`: Only valid in pro edition. The elasticsearch image, default is `elasticsearch:8.15.0`.
- `SEAFILE_CADDY_IMAGE`: Caddy server image, default is `lucaslorentz/caddy-docker-proxy:2.9-alpine`.
- `SEADOC_IMAGE`: Only valid after integrating [SeaDoc](../extension/setup_seadoc.md). SeaDoc server image, default is `seafileltd/sdoc-server:1.0-latest`.
- `NON_ROOT`: Run Seafile container without a root user, default is `false`
### Persistent Volume Configurations
@ -29,6 +30,7 @@ The [`.env`](../repo/docker/pro/env) file will be used to specify the components
## MySQL configurations
- `SEAFILE_MYSQL_DB_HOST`: The host address of Mysql, default is the pre-defined service name `db` in Seafile-docker instance.
- `SEAFILE_MYSQL_DB_PORT`: The port of Mysql, default is `3306`.
- `INIT_SEAFILE_MYSQL_ROOT_PASSWORD`: (Only required on first deployment) The `root` password of MySQL.
- `SEAFILE_MYSQL_DB_USER`: The user of MySQL (`database` - `user` can be found in `conf/seafile.conf`).
- `SEAFILE_MYSQL_DB_PASSWORD`: The user `seafile` password of MySQL.

View File

@ -1,7 +1,3 @@
---
status: new
---
# Installation of Seafile Server Community Edition with Docker
## System requirements
@ -44,6 +40,8 @@ The following fields merit particular attention:
| `SEAFILE_MYSQL_VOLUME` | The volume directory of MySQL data | `/opt/seafile-mysql/db` |
| `SEAFILE_CADDY_VOLUME` | The volume directory of Caddy data used to store certificates obtained from Let's Encrypt's | `/opt/seafile-caddy` |
| `INIT_SEAFILE_MYSQL_ROOT_PASSWORD` | The `root` password of MySQL | (Only required on first deployment) |
| `SEAFILE_MYSQL_DB_HOST` | The host of MySQL | `db` |
| `SEAFILE_MYSQL_DB_PORT` | The port of MySQL | `3306` |
| `SEAFILE_MYSQL_DB_USER` | The user of MySQL (`database` - `user` can be found in `conf/seafile.conf`) | `seafile` |
| `SEAFILE_MYSQL_DB_PASSWORD` | The user `seafile` password of MySQL | (required) |
| `SEAFILE_MYSQL_DB_CCNET_DB_NAME` | The database name of ccnet | `ccnet_db` |
@ -62,6 +60,7 @@ The following fields merit particular attention:
| `NOTIFICATION_SERVER_URL` | The [notification server](../extension/notification-server.md) url, leave blank to disable it | (none) |
| `INIT_SEAFILE_ADMIN_EMAIL` | Admin username | `me@example.com` (Recommend modifications) |
| `INIT_SEAFILE_ADMIN_PASSWORD` | Admin password | `asecret` (Recommend modifications) |
| `NON_ROOT` | Run Seafile container without a root user | `false` |
### Start Seafile server

View File

@ -1,7 +1,3 @@
---
status: new
---
# Installation of Seafile Server Professional Edition with Docker
This manual explains how to deploy and run Seafile Server Professional Edition (Seafile PE) on a Linux server using Docker and Docker Compose. The deployment has been tested for Debian/Ubuntu and CentOS, but Seafile PE should also work on other Linux distributions.
@ -31,12 +27,12 @@ Use the [official installation guide for your OS to install Docker](https://docs
Since v12.0, Seafile PE versions are hosted on DockerHub and does not require username and password to download. For ***older Seafile PE*** versions are available private docker repository (back to Seafile 7.0). You can get the username and password on the download page in the [Customer Center](https://customer.seafile.com/downloads).
```bash
docker pull seafileltd/seafile-pro-mc:12.0-latest
docker pull seafileltd/seafile-pro-mc:13.0-latest
```
### Downloading and Modifying `.env`
From Seafile Docker 12.0, we use `.env`, `seafile-server.yml` and `caddy.yml` files for configuration.
Seafile uses `.env`, `seafile-server.yml` and `caddy.yml` files for configuration.
```bash
mkdir /opt/seafile
@ -59,7 +55,9 @@ The following fields merit particular attention:
| `SEAFILE_MYSQL_VOLUME` | The volume directory of MySQL data | `/opt/seafile-mysql/db` |
| `SEAFILE_CADDY_VOLUME` | The volume directory of Caddy data used to store certificates obtained from Let's Encrypt's | `/opt/seafile-caddy` |
| `SEAFILE_ELASTICSEARCH_VOLUME` | The volume directory of Elasticsearch data | `/opt/seafile-elasticsearch/data` |
| `INIT_SEAFILE_MYSQL_ROOT_PASSWORD` | The `root` password of MySQL | (Only required on first deployment) |
| `INIT_SEAFILE_MYSQL_ROOT_PASSWORD` | The `root` password of MySQL | (Only required on first deployment) |
| `SEAFILE_MYSQL_DB_HOST` | The host of MySQL | `db` |
| `SEAFILE_MYSQL_DB_PORT` | The port of MySQL | `3306` |
| `SEAFILE_MYSQL_DB_USER` | The user of MySQL (`database` - `user` can be found in `conf/seafile.conf`) | `seafile` |
| `SEAFILE_MYSQL_DB_PASSWORD` | The user `seafile` password of MySQL | (required) |
| `SEAFILE_MYSQL_DB_CCNET_DB_NAME` | The database name of ccnet | `ccnet_db` |
@ -90,6 +88,7 @@ The following fields merit particular attention:
| `S3_PATH_STYLE_REQUEST` | This option asks Seafile to use URLs like `https://192.168.1.123:8080/bucketname/object` to access objects. In *Amazon S3*, the default URL format is in virtual host style, such as `https://bucketname.s3.amazonaws.com/object`. But this style relies on advanced DNS server setup. So most self-hosted storage systems only implement the path style format. | `false` |
| `S3_SSE_C_KEY` | A string of 32 characters can be generated by openssl rand -base64 24. It can be any 32-character long random string. It's required to use V4 authentication protocol and https if you enable SSE-C. | (none) |
| `NOTIFICATION_SERVER_URL` | The [notification server](../extension/notification-server.md) url, leave blank to disable it | (none) |
| `NON_ROOT` | Run Seafile container without a root user | `false` |
!!! success "Easier to configure S3 for Seafile and its components"
Since Seafile Pro 13.0, in order to facilitate users to deploy Seafile's related extension components and other services in the future, a section will be provided in `.env` to store the **S3 Configurations** for Seafile and some extension components (such as *SeaSearch*, *Metadata server*). You can locate it with the title bar **\#\#S3**.

View File

@ -1,7 +1,3 @@
---
status: new
---
# Deploy with an existing MySQL server
The entire `db` service needs to be removed (or noted) in `seafile-server.yml` if you would like to use an existing MySQL server, otherwise there is a redundant database service is running
@ -25,7 +21,8 @@ What's more, you have to modify the `.env` to set correctly the fields with MySQ
SEAFILE_MYSQL_DB_HOST=192.168.0.2
SEAFILE_MYSQL_DB_PORT=3306
INIT_SEAFILE_MYSQL_ROOT_PASSWORD=ROOT_PASSWORD
SEAFILE_MYSQL_DB_PASSWORD=PASSWORD
SEAFILE_MYSQL_DB_USER=seafile # the user name of the user you like to use for Seafile server
SEAFILE_MYSQL_DB_PASSWORD=PASSWORD # the password of the user you like to use for Seafile server
```
!!! tip