Merge pull request #258 from haiwen/update-sdoc-path

update sdoc conf path
This commit is contained in:
Daniel Pan 2024-03-19 18:02:09 +08:00 committed by GitHub
commit 91195cb4e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ services:
# - 7070:7070
# - 8888:8888
volumes:
- /opt/seafile/sdoc-data/:/shared
- /opt/seadoc-data/:/shared
environment:
- DB_HOST=192.168.0.2
- DB_PORT=3306

View File

@ -246,7 +246,7 @@ Start SeaDoc server with the following command
docker compose up -d
```
Wait for a few minutes for the first time initialization. Open `sdoc-server-path/sdoc-server/conf/sdoc_server_config.json`, and record `private_key` for modifying Seafile configuration file.
Wait for a few minutes for the first time initialization. Open `/opt/seadoc-data/sdoc-server/conf/sdoc_server_config.json`, and record `private_key` for modifying Seafile configuration file.
### Configure Seafile
@ -298,15 +298,15 @@ If you want to use your own SSL certificate and the volume directory of SeaDoc d
* create a folder `/opt/seadoc-data/ssl`, and put your certificate and private key under the ssl directory.
* Assume your site name is `sdoc-server.example.com`, then your certificate must have the name `sdoc-server.example.com.crt`, and the private key must have the name `sdoc-server.example.com.key`.
## Seafile directory structure
## SeaDoc directory structure
### `/shared`
### `/opt/seadoc-data`
Placeholder spot for shared volumes. You may elect to store certain persistent information outside of a container, in our case we keep various log files and upload directory outside. This allows you to rebuild containers easily without losing important information.
* /shared/sdoc-server: This is the directory for SeaDoc server configuration and data.
* /shared/nginx-logs: This is the directory for nginx logs.
* /shared/ssl: This is directory for certificate, which does not exist by default.
* /opt/seadoc-data/sdoc-server: This is the directory for SeaDoc server configuration and data.
* /opt/seadoc-data/nginx-logs: This is the directory for nginx logs.
* /opt/seadoc-data/ssl: This is directory for certificate, which does not exist by default.
## Upgrading SeaDoc server