0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-24 18:09:26 -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:
Earl Warren 2024-06-14 07:20:50 +02:00 committed by Earl Warren
parent ba7b5de019
commit 5d725ecdc3

View file

@ -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.