# Cant change Gitea user from default GIT in docker

**URL:** <https://forum.gitea.com/t/cant-change-gitea-user-from-default-git-in-docker/9582>\
**Category:** Install/Maintain/Configure\
**Created:** [August 10, 2024, 6:20pm UTC](https://forum.gitea.com/t/cant-change-gitea-user-from-default-git-in-docker/9582 "2024-08-10T18:20:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexey](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Alexey](https://forum.gitea.com/u/Alexey)\
**Post date:** [August 10, 2024, 6:20pm UTC](https://forum.gitea.com/t/cant-change-gitea-user-from-default-git-in-docker/9582/1 "2024-08-10T18:20:58Z")

</div>

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:

```auto
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?

 ![bandicam 2024-08-10 21-14-07-602](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/f/faaf3f7d35778e5ac14d37f344b2ce6c64e37bd8.jpeg)  
 ![bandicam 2024-08-10 21-16-34-763](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/1/15709aa22ca64a0f3bd46dbe9ac407d00ab6deb6.jpeg)  
 ![bandicam 2024-08-10 21-17-20-188](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/d/d992ab9374ca0ab73e8de94578b9977746754184.jpeg)  
 ![bandicam 2024-08-10 21-17-40-913](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/6/6b2afb0e3a96ef8000f16500cb6d5fd0f4985c91.jpeg)
