---
# System prepended metadata

title: install gitlab in windows

---

# install gitlab in windows

[install gitlab using docker](https://docs.gitlab.com/ee/install/docker.html)
1. [install docker](https://docs.docker.com/desktop/install/windows-install/)
1. create a new folder as gitlab data folder
2. env GITLAB_HOME="path of gitlab folder"
3. docker run gitlab/gitlab-ce
    ```cmd=
    docker run --detach ^
      --hostname gitlab.example.com ^
      --env GITLAB_OMNIBUS_CONFIG="external_url 'https://gitlab.example.com'" ^
      --publish 443:443 ^
      --name gitlab ^
      --restart always ^
      --volume %GITLAB_HOME%\config:/etc/gitlab ^
      --volume %GITLAB_HOME%\logs:/var/log/gitlab ^
      --volume %GITLAB_HOME%\data:/var/opt/gitlab ^
      --shm-size 256m ^
      gitlab/gitlab-ce:latest
    ```
1. password in GITLAB_HOME/config
    ```bash=
    # in docker terminal
    grep 'Password:' /etc/gitlab/initial_root_password
    ```
4. log in to https://localhost as root
5. turn off sign-up
6. create user
7. create repo