From c0b36593b4c979b970a9809e54253d42cd966bee Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 14 Jun 2024 07:20:50 +0200 Subject: [PATCH] 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 (cherry picked from commit 5d725ecdc3a54e8812c6913ca7045a7760dcb28b) --- docs/admin/installation-docker.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/admin/installation-docker.md b/docs/admin/installation-docker.md index 675e544b..f8aaa16a 100644 --- a/docs/admin/installation-docker.md +++ b/docs/admin/installation-docker.md @@ -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.