Cant change Gitea user from default GIT in docker

Hello I have already installed gitea and it is finally working great with ubuntu server. I run Gitea from special precreated user
But now i try to create it with docker

My setup is:

  1. Proxmox VMs;
  2. Install docker + docker compose + portainer;
  3. I create special user (in my case): gitea for running demon inside container. I create Gitea User on my ubuntu server with docker setup.
  4. User parameters are:
    Adding system user gitea' (UID 109) ...** **Adding new group gitea’ (GID 115) …
    Adding new user gitea' (UID 109) with group gitea’
  5. My docker-compose file is:
version: "3"

services:
  server:
    image: gitea/gitea:latest
    container_name: gitea
    restart: always
    environment:
      - USER_UID=109
      - USER_GID=115
    volumes:
      - ./data:/data
      - ./custom:/app/gitea/custom
      - ./log:/app/gitea/log
    ports:
      - "3002:3000"
      - "2222:22"
  1. I run conteiner

Problems:

  • i cant change default user in Gitea setup in GUI (screen). But all other fields i change to …/gitea/…
  • Gitea service still running with GIT user and i can’t change it.

So, how we can switch and run Gitea service with precreated special user, not with GIT and run demon in container from this user?