![]() ![]() A detailed documentation for how to run gitlab using Docker is found under GitLab Docker images including how to access the web interface. First, make sure docker is installed on Windows, otherwise install it. For Windows you would need at least 4GB for Windows, and then add the memory requirements of Gitlab, so then you would be looking at an additional 4 - 8GB, thus requiring 8 - 12GB for Windows, whereas the same on Linux would be 4 - 8GB including the. Then login, create a user, give him a first password, login with it update password, create a project, and use project's git url rather than http since the use of a port seems to generate some trouble with the http url. Yes, you can run gitlab-ce on windows using Docker. A Linux server with only gitlab installed will need far less CPU/ram requirements than Windows. Set it like this (cygwin): docker exec -it $(docker ps | grep gitlab | awk ' #important here: do not mount /var/opt/gitlab but /var/opt as stated here:ĭo (cygwin) docker ps | grep gitlab until status (healthy) is shown, then open a browser at If you are not asked the first time to change root password, Use the following docker-compose file: web: ![]() Note that I will use 8082 port for gitlab server.You can change it with any port number.ġ-open cmd and show your IP address.You need to look for the IPv4 Address in your network adapter :Ģ-Run your docker-ce image with this command :ĭocker run -detach -hostname YOUR-IP-ADRESS -publish 8082:8082 -publish 2282:22 -name gitlab -restart always -volume D:\DevOps\Gitlab/config:/etc/gitlab -volume D:\DevOps\Gitlab/logs:/var/log/gitlab -volume D:\DevOps\Gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latestģ-In docker terminal(in docker gui application press to "cli" buton) go here :Ĥ-Go to end of file at gitlab.rb and write these lines :Įxternal_url " gitlab_rails = 2282ĥ-After save and close to gitlab.rb file enter this code for reconfiguration:Ħ-Remove your docker container and run with this command again:ĭocker run -detach -hostname YOUR-IP-ADRESS -publish 8082:8082 -publish 2282:22 -name gitlab -restart always -volume D:\DevOps\Gitlab/config:/etc/gitlab -volume D:\DevOps\Gitlab/logs:/var/log/gitlab -volume D:\DevOps\Gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest T21:37:16 00:00 T21:37:16 00:00 Answer Link And run your gitlab-ce image with docker run command.Gitlab should be running firstly. ![]() You can check gitlab documantation from Expose GitLab on different ports section.īefore starting the installation create 3 folder which names "config","data","logs" in a "gitlab" folder.
0 Comments
Leave a Reply. |