mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2025-12-26 02:32:50 +00:00
update upgrade to 13.0 for docker deployment
This commit is contained in:
parent
cdf452a076
commit
0020f3107a
|
|
@ -34,62 +34,155 @@ From Seafile Docker 13.0, the `elasticsearch.yml` has separated from `seafile-se
|
|||
wget https://manual.seafile.com/13.0/repo/docker/pro/seafile-server.yml
|
||||
```
|
||||
|
||||
4. From Seafile Docker 13.0 (**Pro**), the *ElasticSearch* service will be controlled by a separate resource file (i.e., `elasticsearch.yml`). If you are using Seafile Pro and still plan to use *ElasticSearch*, please download the `elasticsearch.yml`
|
||||
4. Update `.yml` file for search engine:
|
||||
|
||||
```sh
|
||||
wget https://manual.seafile.com/13.0/repo/docker/pro/elasticsearch.yml
|
||||
```
|
||||
=== "ElasticSearch"
|
||||
|
||||
From Seafile Docker 13.0 (**Pro**), the *ElasticSearch* service will be controlled by a separate resource file (i.e., `elasticsearch.yml`). If you are using Seafile Pro and still plan to use *ElasticSearch*, please download the `elasticsearch.yml`:
|
||||
|
||||
```sh
|
||||
wget https://manual.seafile.com/13.0/repo/docker/pro/elasticsearch.yml
|
||||
```
|
||||
|
||||
=== "SeaSearch"
|
||||
|
||||
If you are using SeaSearch as the search engine, please download the newest `seasearch.yml` file:
|
||||
|
||||
```sh
|
||||
mv seasearch.yml seasearch.yml.bak
|
||||
wget https://manual.seafile.com/13.0/repo/docker/pro/seasearch.yml
|
||||
```
|
||||
|
||||
5. Modify `.env`, update image version and add cache configurations:
|
||||
|
||||
!!! note "Variables change logs for `.env` in Seafile 13"
|
||||
1. The configurations of database and cache can get from environment variables directly (you can define it in the `.env`). What's more, the Redis will be recommended as the primary cache server for supporting some new features (please refer the ***upgradte notes***, you can also refer to more details about Redis in Seafile Docker [here](../setup/setup_pro_by_docker.md#about-redis)) and is the default type of cache provided in Seafile 13.
|
||||
|
||||
2. The configuration of S3 (including Seafile server, SeaSearch, and the newly supported Metadata server) will use unified variables (i.e., `S3_xxx`) for the authorization information of S3 in the new deployment. Please refer to the end of [the table in Seafile Pro deployment](../setup/setup_pro_by_docker.md#downloading-and-modifying-env) for details. If you plan to deploy or redeploy these components in the future, **please pay attention to changes in variable names**.
|
||||
|
||||
3. The configuration of notification server will no longer read from `seafile.conf`, rather than the variable `NOTIFICATION_SERVER_URL` in the `.env` and leave blank to disable this feature.
|
||||
|
||||
- Update image version to Seafile 13
|
||||
|
||||
=== "Seafile Pro"
|
||||
|
||||
```sh
|
||||
COMPOSE_FILE='...,elasticsearch.yml' # add `elasticsearch.yml` if you are still using ElasticSearch
|
||||
# -- add `elasticsearch.yml` if you are still using ElasticSearch
|
||||
# COMPOSE_FILE='...,elasticsearch.yml'
|
||||
|
||||
# -- if you are using SeaSearch, please also update the SeaSearch image
|
||||
# SEASEARCH_IMAGE=seafileltd/seasearch:1.0-latest # or seafileltd/seasearch-nomkl:1.0-latest for Apple chips
|
||||
|
||||
SEAFILE_IMAGE=seafileltd/seafile-pro-mc:13.0-latest
|
||||
SEADOC_IMAGE=seafileltd/sdoc-server:1.0-latest
|
||||
NOTIFICATION_SERVER_IMAGE=seafileltd/notification-server:13.0-latest
|
||||
|
||||
```
|
||||
|
||||
=== "Seafile CE"
|
||||
|
||||
```sh
|
||||
SEAFILE_IMAGE=seafileltd/seafile-mc:13.0-latest
|
||||
SEADOC_IMAGE=seafileltd/sdoc-server:1.0-latest
|
||||
NOTIFICATION_SERVER_IMAGE=seafileltd/notification-server:13.0-latest
|
||||
```
|
||||
|
||||
- Add configurations for cache:
|
||||
|
||||
```sh
|
||||
## Cache
|
||||
CACHE_PROVIDER=redis # or memcached
|
||||
From Seafile 13, the configurations of database and cache can get from environment variables directly (you can define it in the `.env`). What's more, the Redis will be recommended as the primary cache server for supporting some new features (please refer the ***upgradte notes***, you can also refer to more details about Redis in Seafile Docker [here](../setup/setup_pro_by_docker.md#about-redis)).
|
||||
|
||||
### Redis
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
|
||||
### Memcached
|
||||
MEMCACHED_HOST=memcached
|
||||
MEMCACHED_PORT=11211
|
||||
```
|
||||
=== "Redis"
|
||||
|
||||
```sh
|
||||
## Cache
|
||||
CACHE_PROVIDER=redis
|
||||
|
||||
### Redis
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_PASSWORD=
|
||||
```
|
||||
=== "Memcached"
|
||||
|
||||
```sh
|
||||
## Cache
|
||||
CACHE_PROVIDER=memcached
|
||||
|
||||
### Memcached
|
||||
MEMCACHED_HOST=memcached
|
||||
MEMCACHED_PORT=11211
|
||||
```
|
||||
|
||||
- Add configuration for notification server (if is enabled in Seafile 12):
|
||||
|
||||
```sh
|
||||
NOTIFICATION_SERVER_URL=<your notification server url>
|
||||
NOTIFICATION_SERVER_URL=$SEAFILE_SERVER_PROTOCOL://$SEAFILE_SERVER_HOSTNAME/notification
|
||||
```
|
||||
|
||||
- Add configurations for file storages (Pro):
|
||||
|
||||
Please specify the storage type used by Seafile in `.env` according to the usage environment. It will affect ***Seafile***, ***SeaSearch*** and ***Metadata server*** at the same time
|
||||
|
||||
=== "Local disk (default)"
|
||||
|
||||
Set `SEAF_SERVER_STORAGE_TYPE` to `disk` (default value):
|
||||
|
||||
```sh
|
||||
SEAF_SERVER_STORAGE_TYPE=disk
|
||||
```
|
||||
=== "Policies in `seafile.conf`"
|
||||
|
||||
If you would like to use the storage policies in `seafile.conf` (used before Seafile 12 by default), please remove default value of `SEAF_SERVER_STORAGE_TYPE` in `.env`:
|
||||
|
||||
```sh
|
||||
SEAF_SERVER_STORAGE_TYPE=
|
||||
```
|
||||
|
||||
=== "Single S3 backend"
|
||||
|
||||
Set `SEAF_SERVER_STORAGE_TYPE` to `s3`, and add your s3 configurations:
|
||||
|
||||
```sh
|
||||
SEAF_SERVER_STORAGE_TYPE=s3
|
||||
|
||||
S3_COMMIT_BUCKET=<your commit bucket name>
|
||||
S3_FS_BUCKET=<your fs bucket name>
|
||||
S3_BLOCK_BUCKET=<your block bucket name>
|
||||
S3_SS_BUCKET=<your seasearch bucket name> # for seasearch
|
||||
S3_MD_BUCKET=<your metadata bucket name> # for metadata-server
|
||||
S3_KEY_ID=<your-key-id>
|
||||
S3_SECRET_KEY=<your-secret-key>
|
||||
S3_USE_V4_SIGNATURE=true
|
||||
S3_PATH_STYLE_REQUEST=false
|
||||
S3_AWS_REGION=us-east-1
|
||||
S3_HOST=
|
||||
S3_USE_HTTPS=true
|
||||
S3_SSE_C_KEY=
|
||||
```
|
||||
|
||||
=== "Multiple storage backends"
|
||||
|
||||
Set `SEAF_SERVER_STORAGE_TYPE` to `multiple`. If you are using SeaSearch in Seafile 12, please also modify `SS_STORAGE_TYPE` according to your configurations. In this case, you don't need to change the content in `seafile.conf`
|
||||
|
||||
```sh
|
||||
SEAF_SERVER_STORAGE_TYPE=multiple
|
||||
|
||||
SS_STORAGE_TYPE=disk # or s3
|
||||
```
|
||||
|
||||
!!! note
|
||||
If you are using multiple storage backends, and SeaSearch also use S3, please specify the S3 configurations in `.env`:
|
||||
|
||||
```sh
|
||||
S3_SS_BUCKET=<your seasearch bucket name>
|
||||
S3_KEY_ID=<your-key-id>
|
||||
S3_SECRET_KEY=<your-secret-key>
|
||||
S3_USE_V4_SIGNATURE=true
|
||||
S3_PATH_STYLE_REQUEST=false
|
||||
S3_AWS_REGION=us-east-1
|
||||
S3_HOST=
|
||||
S3_USE_HTTPS=true
|
||||
S3_SSE_C_KEY=
|
||||
```
|
||||
|
||||
!!! tip "Optional but recommended modifications for further configuration files"
|
||||
Although the configurations in environment (i.e., `.env`) have higher priority than the configurations in config files, we recommend that you remove or modify the cache configuration in the following files to avoid ambiguity::
|
||||
|
||||
- `seafile.conf`: remove the `[memcached]` section
|
||||
- `seafile.conf`: remove the `[memcached]` section. If you are using single S3 backend and have specified `SEAF_SERVER_STORAGE_TYPE=s3` in `.env`, the `[commit_object_backend]`, `[fs_object_backend]` and `[block_backend]` also can be removed.
|
||||
|
||||
- `seahub_settings.py`: remove the key `default` in variable `CACHES`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue