Gitlab in docker on windows
NickName:Johan Ask DateTime:2022-12-20T01:08:37

Gitlab in docker on windows

I want to run Gitlab using docker on windows 10, but cannot access the service.

I am using docker composer with the configuration file

version: '3.6'
services:
  web:
    image: 'gitlab/gitlab-ce'
    restart: always
    hostname: 'mygitlab.local'
    container_name: gitlab-ce
    environment:
      GITLAB_OMNIBUS_CONFIG: |
          external_url 'https://mygitlab.local'
    ports:
      - '80:80'
      - '443:443'
      - '22:22'
    volumes:
      - F:/gitlab/docker_data/config:/etc/gitlab
      - F:/gitlab/docker_data/logs:/var/log/gitlab
      - F:/gitlab/docker_data/data:/var/opt/gitlab
    shm_size: '256m'
    networks:
      - gitlab

  gitlab-runner:
    image: gitlab/gitlab-runner:alpine
    container_name: gitlab-runner    
    restart: always
    depends_on:
      - web
    volumes:
      - 'F:/gitlab/docker_data/docker.sock:/var/run/docker.sock'
      - 'F:/gitlab/docker_data/gitlab-runner:/etc/gitlab-runner'
    networks:
      - gitlab

networks:
  gitlab:
    name: gitlab-network

Gitlab is started running docker compose up -d. Looking at docker desktop the container are running. But I cannot access the server using firefox.

The file C:\WINDOWS\System32\drivers\etc\hosts also contains 127.0.0.1 mygitlab.local .

Copyright Notice:Content Author:「Johan」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/74853733/gitlab-in-docker-on-windows

More about “Gitlab in docker on windows” related questions

Gitlab in docker on windows

I want to run Gitlab using docker on windows 10, but cannot access the service. I am using docker composer with the configuration file version: '3.6' services: web: image: 'gitlab/gitlab-ce' ...

Show Detail

Install CI gitlab with Docker in Windows

Trying to install a gitlab runner on my windows machine inside a docker container Using docker run -d --name gitlab-runner --restart always \ -v ${PWD}/gitla /gitlab-runner \ -v /var/run/

Show Detail

Load External Gitlab in Windows Docker

I'm using a Gitlab site, example: https://code.mycompany.com I had installed the Gitlab in Windows Docker using the following script in command prompt: docker run --detach --hostname localhost --env

Show Detail

Windows Docker API issue for using GitLab-runner

While setting up a Windows CI pipeline from GitLab, I was going through the numerous issues related to the Windows gitlab-runner docker executor that is using an old API (1.18) which Docker no longer

Show Detail

How to access remote docker from windows gitlab runner

i am beginner in gitlab ci/cd. I want to build image on remote docker by using windows gitlab runner. How i can connect with remote docker from windows gitlab runner. Thanks

Show Detail

install gitlab on Windows with Docker

I searched a lot and found that GitLab Community Edition is not installed on Windows so now I want to install it with the help of Docker. I do not know that is it possible and how I can do it ?

Show Detail

run GitLab with docker image in windows 10 on localhost

I have installed a docker image "gitlab/gitlab-ce" on windows 10 and I try to run with following command. docker run --detach --hostname https://localhost/ --publish 40443:80 --name GitLa...

Show Detail

Gitlab runner with docker-windows executor is pulling linux docker images and failing

I've been running a Gitlab CI runner in a linux server for a while configured with docker executor. This has been working for a while now until I have been asked to add a docker-windows executor to...

Show Detail

Docker windows 10 with gitlab

Good afternoon, I have a doubt. My Operating System is Windows 10, I have docker installed on it and would like to by the ubuntu with gitlab. It is possible? I tried to do this but I had a problem

Show Detail

How to get access to GitLab in Docker?

I have a Docker on Windows7 machine. Now i want to install GitLab in Docker container: docker pull docker.io/gitlab/gitlab-ce docker run --name gitlab101 -h gitlab101 -p 8080:8080 -p 443:443 -d gi...

Show Detail