mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-21 17:36:59 -05:00
admin: installation: docker rootless does not have USER_UID/USER_GID
The USER_UID/USER_GID are not interpretd in the rootless image, use `user: "1024:100"` in the docker-compose example instead. Fixes: https://codeberg.org/forgejo/docs/issues/704
This commit is contained in:
parent
ba7b5de019
commit
5d725ecdc3
1 changed files with 3 additions and 4 deletions
|
@ -237,9 +237,8 @@ services:
|
|||
- image: codeberg.org/forgejo/forgejo:7
|
||||
+ image: codeberg.org/forgejo/forgejo:7-rootless
|
||||
container_name: forgejo
|
||||
environment:
|
||||
+ - USER_UID=1024
|
||||
+ - USER_GID=100
|
||||
+ user: "1024:100"
|
||||
- environment:
|
||||
- - USER_UID=1000
|
||||
- - USER_GID=1000
|
||||
|
||||
|
@ -258,7 +257,7 @@ services:
|
|||
```
|
||||
|
||||
This will write the configuration into our created `conf` folder and all other data into the `data` folder.
|
||||
Make sure that `USER_UID` and `USER_GID` match the `anonuid` and `anongid` setting
|
||||
Make sure that `1024` and `100` match the `anonuid` and `anongid` setting
|
||||
in the NFS server setting here such that the Forgejo user sees files and folders with the same UID and GID
|
||||
in the respective folders and thus identifies itself as the sole owner of the folder structure.
|
||||
|
||||
|
|
Loading…
Reference in a new issue