-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #355 from haiwen/opt_structure_102124
opt: structures
- Loading branch information
Showing
5 changed files
with
38 additions
and
76 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
manual/docker/deploy_seafile_with_an_existing_mysql_server.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Deploy with an existing MySQL server | ||
|
||
If you want to use an existing MySQL server, you can modify the `.env` as follows | ||
|
||
```env | ||
SEAFILE_MYSQL_DB_HOST=192.168.0.2 | ||
SEAFILE_MYSQL_DB_PORT=3306 | ||
SEAFILE_MYSQL_ROOT_PASSWORD=ROOT_PASSWORD | ||
SEAFILE_MYSQL_DB_PASSWORD=PASSWORD | ||
``` | ||
|
||
NOTE: `SEAFILE_MYSQL_ROOT_PASSWORD` is needed during installation (i.e., the deployment in the first time). After Seafile is installed, the user `seafile` will be used to connect to the MySQL server (SEAFILE_MYSQL_DB_PASSWORD), then you can remove the `SEAFILE_MYSQL_ROOT_PASSWORD`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
manual/docker/run_seafile_as_non_root_user_inside_docker.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Run Seafile as non root user inside docker | ||
|
||
You can use run seafile as non root user in docker. (**NOTE:** Programs such as `my_init`, Nginx are still run as `root` inside docker.) | ||
|
||
First add the `NON_ROOT=true` to the `.env`. | ||
|
||
```env | ||
NON_ROOT=true | ||
``` | ||
|
||
Then modify `/opt/seafile-data/seafile/` permissions. | ||
|
||
```bash | ||
chmod -R a+rwx /opt/seafile-data/seafile/ | ||
``` | ||
|
||
Then destroy the containers and run them again: | ||
|
||
```bash | ||
docker compose down | ||
docker compose up -d | ||
``` | ||
|
||
Now you can run Seafile as `seafile` user. (**NOTE:** Later, when doing maintenance, other scripts in docker are also required to be run as `seafile` user, e.g. `su seafile -c ./seaf-gc.sh`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters