Skip to content

Commit 88869eb

Browse files
update non root
1 parent c8ca9ea commit 88869eb

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Run Seafile as non root user inside docker
22

3-
You can use run seafile as non root user in docker.
3+
You can use run Seafile as non root user in docker.
44

5-
First add the `NON_ROOT=true` to the `.env`.
5+
First deploy Seafile with docker, and destroy the containers.
6+
7+
```bash
8+
docker compose down
9+
```
10+
11+
Then add the `NON_ROOT=true` to the `.env`.
612

713
```env
814
NON_ROOT=true
@@ -14,14 +20,13 @@ Then modify `/opt/seafile-data/seafile/` permissions.
1420
chmod -R a+rwx /opt/seafile-data/seafile/
1521
```
1622

17-
Then destroy the containers and run them again:
23+
Start Seafile:
1824

1925
```bash
20-
docker compose down
2126
docker compose up -d
2227
```
2328

24-
Now you can run Seafile as `seafile` user.
29+
Now you can run Seafile as `seafile` user.
2530

2631
!!! tip
27-
When doing maintenance, other scripts in docker are also required to be run as `seafile` user, e.g. `su seafile -c ./seaf-gc.sh`
32+
When doing maintenance, other scripts in docker are also required to be run as `seafile` user, e.g. `su seafile -c ./seaf-gc.sh`

0 commit comments

Comments
 (0)