Skip to content

Commit 212fef0

Browse files
microbugtechknowlogick
authored andcommitted
Add details about USER_UID and USER_GID environment variables (#4301)
1 parent e2721b6 commit 212fef0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/doc/installation/with-docker.en-us.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ You can configure some of Gitea's settings via environment variables:
245245
* `SECRET_KEY`: **""**: Global secret key. This should be changed. If this has a value and `INSTALL_LOCK` is empty, `INSTALL_LOCK` will automatically set to `true`.
246246
* `DISABLE_REGISTRATION`: **false**: Disable registration, after which only admin can create accounts for users.
247247
* `REQUIRE_SIGNIN_VIEW`: **false**: Enable this to force users to log in to view any page.
248+
* `USER_UID`: **1000**: The UID (Unix user ID) of the user that runs Gitea within the container. Match this to the UID of the owner of the `/data` volume if using host volumes (this is not necessary with named volumes).
249+
* `USER_GID`: **1000**: The GID (Unix group ID) of the user that runs Gitea within the container. Match this to the GID of the owner of the `/data` volume if using host volumes (this is not necessary with named volumes).
248250

249251
# Customization
250252

0 commit comments

Comments
 (0)