I was struggling for hours in order to have a full gitlab ci/cd-> docker-compose runner configuration up and running with no luck till now. At a certain point it was clear to me that i needed to configure a dind service for my docker runner but i was unable to make it work correctly. Now i ran you… Answer from A77ILA on forum.gitlab.com
🌐
GitLab
docs.gitlab.com › gitlab docs › install › installation methods › docker › install
Install GitLab in a Docker container | GitLab Docs
The following examples use a stable Enterprise Edition version. If you want to use the Release Candidate (RC) or nightly image, use gitlab/gitlab-ee:rc or gitlab/gitlab-ee:nightly instead. To install the Community Edition, replace ee with ce. ... Install Docker Compose.
Author: sameersbn
Discussions

How to use Docker Compose In Gitlab CI
What are valid way to run docker compose inside a Gitlab CI. As I have tried to go with:| docker-compose-playgroound: stage: docker-compose-playgroound image: docker:18 services: - docker:18-dind tags: - docker-main variables: DOCKER_TLS_CERTDIR: "" DOCKER_HOST: tcp://docker:2375 script: - ... More on forum.gitlab.com
🌐 forum.gitlab.com
3
1
January 2, 2024
Example GitLab Runner docker compose configuration
After having spent some time the other day to redo my (“standalone”) runner setup, I figured that I would share this for the benefit of the community. .env: RUNNER_NAME=RUNNER-NAME REGISTRATION_TOKEN=TOKEN CI_SERVER_UR… More on forum.gitlab.com
🌐 forum.gitlab.com
13
6
March 26, 2022
Gitlab inside docker
Docker on Mac has a 2GB ram limit by default, you might need to increase that https://docs.docker.com/desktop/settings/mac/#resources More on reddit.com
🌐 r/gitlab
10
2
May 25, 2023
How to install GitLab using Docker Compose?
🌐 r/gitlab
1
3
November 15, 2021
🌐
DEV Community
dev.to › teetoflame › setting-up-a-gitlab-server-community-edition-and-a-gitlab-runner-using-docker-compose-ob6
Setting Up a GitLab Server (Community Edition) and a GitLab Runner Using Docker Compose - DEV Community
February 20, 2025 - The GitLab UI should be available at http://<your-EC2-public-IP>:8088. Initially, you might get a 502 error, but this should resolve as the services fully initialize. ... aws ec2 describe-security-groups --group-ids <your-security-group-id> --query "SecurityGroups[*].IpPermissions" ... Log in using root as the username and the password set in the docker-compose.yml file.
🌐
Medium
medium.com › @BuildWithLal › gitlab-setup-using-docker-compose-a-beginners-guide-3dbf1ef0cbb2
Setup GitLab Using Docker Compose: A Beginner’s Guide | by Lal Zada | Medium
October 10, 2024 - First it will do docker pull gitlab/gitlab-ce if the gitlab/gitlab-ce docker image does not exist on your local machine. After pulling the docker image, it will do docker run gitlab/gitlab-ce · So you can see how docker compose combines 2 separate commands into a single YAML file.
🌐
GitLab
forum.gitlab.com › gitlab ci/cd
How to use Docker Compose In Gitlab CI - GitLab CI/CD - GitLab Forum
January 2, 2024 - What are valid way to run docker compose inside a Gitlab CI. As I have tried to go with:| docker-compose-playgroound: stage: docker-compose-playgroound image: docker:18 services: - docker:18-dind tags: - docker-main variables: DOCKER_TLS_CERTDIR: "" DOCKER_HOST: tcp://docker:2375 script: - docker compose -f .gitlab/docker-compose-autotests.yml up However it has resulted in error: $ docker compose -f .gitlab/docker-compose-autotes...
🌐
GitLab
forum.gitlab.com › gitlab ci/cd
Example GitLab Runner docker compose configuration - GitLab CI/CD - GitLab Forum
March 26, 2022 - After having spent some time the other day to redo my (“standalone”) runner setup, I figured that I would share this for the benefit of the community. .env: RUNNER_NAME=RUNNER-NAME REGISTRATION_TOKEN=TOKEN CI_SERVER_URL=https://gitlab.com/ docker-compose.yml: version: "3.5" services: dind: image: docker:20-dind restart: always privileged: true environment: DOCKER_TLS_CERTDIR: "" command: - --storage-driver=overlay2 runner: restart: always image:...
🌐
DevOps in the clouds
czerniga.it › strona główna › how to install gitlab using docker compose?
How to install GitLab using Docker Compose?
September 26, 2022 - For convenience, we will also set an environment variable that will contain the path to our Gitlab directory: ... # docker-compose.yml version: '3.7' services: web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'localhost' container_name: gitlab-ce environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://localhost' ports: - '8080:80' - '8443:443' volumes: - '$GITLAB_HOME/config:/etc/gitlab' - '$GITLAB_HOME/logs:/var/log/gitlab' - '$GITLAB_HOME/data:/var/opt/gitlab' networks: - gitlab gitlab-runner: image: gitlab/gitlab-runner:alpine container_name: gitlab-runner restart: always depends_on: - web volumes: - /var/run/docker.sock:/var/run/docker.sock - '$GITLAB_HOME/gitlab-runner:/etc/gitlab-runner' networks: - gitlab networks: gitlab: name: gitlab-network
Find elsewhere
🌐
Atlantic.Net
atlantic.net › home › blog › how to install gitlab with docker and docker compose on arch linux
How to install GitLab with Docker and Docker Compose on Arch Linux
June 2, 2024 - version: '3.7' services: web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'localhost' container_name: gitlab-ce environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://localhost' ports: - '8080:80' - '8443:443' volumes: - '$GITLAB_HOME/config:/etc/gitlab' - '$GITLAB_HOME/logs:/var/log/gitlab' - '$GITLAB_HOME/data:/var/opt/gitlab' networks: - gitlab gitlab-runner: image: gitlab/gitlab-runner:alpine container_name: gitlab-runner restart: always depends_on: - web volumes: - /var/run/docker.sock:/var/run/docker.sock - '$GITLAB_HOME/gitlab-runner:/etc/gitlab-runner' networks: - gitlab networks: gitlab: name: gitlab-network · Save and close the file when you are done. At this point, the docker-compose.yml file is ready to start the GitLab container.
🌐
Mike Polinowski
mpolinowski.github.io › devops › gitops › install gitlab with docker-compose (debian bullseye)
Install Gitlab with Docker-Compose (Debian Bullseye) | Mike Polinowski
nano docker-compose.yml · version: '3.6' services: web: image: 'gitlab/gitlab-ce:latest' container_name: gitlab-ce · restart: unless-stopped · hostname: 'gitlab.example.com' environment: GITLAB_OMNIBUS_CONFIG: | # Add any other gitlab.rb configuration here, each on its own line ·
🌐
GitHub
gist.github.com › bkuhl › 3487ec4557eee8de6700d6a0ab058e72
How to use docker-compose in GitLab CI · GitHub
image: tmaier/docker-compose:latest services: - docker:dind before_script: - docker info - docker-compose --version build image: stage: build script: - docker-compose build
🌐
GitLab
docs.gitlab.com › gitlab docs › install › installation methods › docker › configure
Configure GitLab running in a Docker container | GitLab Docs
Following the previous example, your web browser can reach your GitLab instance at <hostIP>:8929 and push over SSH on port 2424. You can see a docker-compose.yml example that uses different ports in the Docker compose section.
🌐
Medium
medium.com › @vitalypanukhin › docker-compose-and-gitlab-b209d09210f6
Docker Compose and GitLab. A walkthrough of how to deploy your app… | by Vitaly Panyukhin | Medium
May 20, 2020 - The values could be soursed from GitLab vault or from the variables written in the .gitlab-ci.yml file. Then Docker Compose are using .env file to read the values and pass them to OS variables of relevant containers.
🌐
GitHub
github.com › mgcrea › docker-compose-gitlab-ce
GitHub - mgcrea/docker-compose-gitlab-ce: Compose file for Gitlab Community Edition · GitHub
You can quickly start your compose gitlab instance (requires a working automated nginx_proxy compose instance) git clone git@github.com:mgcrea/docker-compose-gitlab-ce.git gitlab; cd $_ cp .env.default .env; nano .env make docker-compose up -d
Author: mgcrea
🌐
GitHub
github.com › hutchgrant › gitlab-docker-local
GitHub - hutchgrant/gitlab-docker-local: Install, configure, and run Gitlab CE and Gitlab-Runner in local docker containers via docker-compose. · GitHub
Install, configure, and run Gitlab CE and Gitlab-Runner in local docker containers via docker-compose. ... For the purpose of this demonstration, we will be assuming the persistent docker volumes will be at the path /srv/gitlab and ...
Starred by 30 users
Forked by 13 users
Languages: Shell 73.4% | Dockerfile 26.6%
🌐
Cloud Infrastructure Services
cloudinfrastructureservices.co.uk › home › blog › how to setup gitlab docker compose container image
How to Setup GitLab Docker Compose Container Image
February 10, 2023 - Next, create a data directory to store GitLab data. Then, export the data directory with the following command. After that, change the directory to your project and create a docker-compose.yml configuration file for GitLab.
🌐
GitHub
gist.github.com › benoitpetit › cbe19cdd369ec8c1e0defd245d91751f
complete Gitlab installation and a runner with docker · GitHub
how will run gitlab-runner-register.sh file, when we do docker-compose.yml up · Once the Docker container is executed and configured, navigate to the following address: example.com/root/${project}/settings/ci_cd · Replace ${project} with the name of your project.
🌐
OneUptime
oneuptime.com › home › blog › how to run gitlab ce in docker (self-hosted)
How to Run GitLab CE in Docker (Self-Hosted)
February 8, 2026 - A production-ready setup should use Docker Compose with proper configuration: services: gitlab: image: gitlab/gitlab-ce:17.4.0-ce.0 container_name: gitlab hostname: gitlab.example.com restart: unless-stopped shm_size: "256m" ports: - "80:80" ...
🌐
ComputingForGeeks
computingforgeeks.com › home › run gitlab ce in docker with docker compose
Run GitLab in Docker Containers using Docker Compose [Guide]
March 28, 2026 - If you prefer the latest Docker CE from the official Docker repository instead, follow our guide on installing Docker CE on Linux. The compose syntax is identical either way. ... sudo ufw allow 80/tcp sudo ufw allow 443/tcp sudo ufw allow 2222/tcp sudo ufw allow OpenSSH sudo ufw enable · GitLab should always run behind HTTPS. Before bringing up the container, obtain a Let’s Encrypt certificate. If your server has a public IP, use the standalone method: sudo apt install -y certbot sudo certbot certonly --standalone -d gitlab.example.com --non-interactive --agree-tos -m [email protected]
🌐
JamesCoyle.net
jamescoyle.net › home › docker compose yml for gitlab and gitlab runner
Docker Compose yml for Gitlab and Gitlab Runner | JamesCoyle.net Limited
November 1, 2019 - version: '3.5' services: gitlab: image: gitlab/gitlab-ce:latest hostname: www.jamescoyle.net restart: unless-stopped environment: GITLAB_OMNIBUS_CONFIG: | gitlab_rails['gitlab_shell_ssh_port'] = 8822 ports: - "8000:80" - "8822:22" volumes: - ./config/gitlab:/etc/gitlab - ./data/gitlab:/var/opt/gitlab - ./logs:/var/log/gitlab networks: - gitlab gitlab-runner: image: gitlab/gitlab-runner:alpine restart: unless-stopped depends_on: - gitlab volumes: - ./config/gitlab-runner:/etc/gitlab-runner - /var/run/docker.sock:/var/run/docker.sock networks: - gitlab networks: gitlab: Create a new directory and save the above file inside it as docker-compose.yml.
🌐
Cylab
cylab.be › blog › 229 › continuous-deployment-with-gitlab-and-docker-compose
Continuous Deployment with GitLab and docker-compose | cylab.be
September 19, 2023 - The example below is for a Laravel project. You can tune it for your needs: # # docker-compose.tmpl # https://cylab.be/blog/229/continuous-deployment-with-gitlab-and-docker # $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA # version: "3.7" services: web: image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA depends_on: - redis - mysql ports: - "80" volumes: - ./volumes/web:/var/www/html/storage restart: "unless-stopped" environment: WAIT_HOSTS: mysql:3306 queue: image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA depends_on: - web volumes: - ./volumes/web:/var/www/html/storage command: ["php", "artisan", "queue:work", "--verbose"]