version: '2'
services:
  gitlab:
    image: 'gitlab/gitlab-ce:latest'
    hostname: 'gitlab'
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        # change external_url to conatiner host ip. TO resolved runner fetch source no hosts.
        external_url 'http://172.20.0.1:9090'
        gitlab_rails['gitlab_shell_ssh_port'] = 2224
    ports:
      - '9090:9090'
      - '2224:22'
    volumes:
      - '/srv/gitlab/config:/etc/gitlab'
      - '/srv/gitlab/logs:/var/log/gitlab'
      - '/srv/gitlab/data:/var/opt/gitlab'
  
  runner:
    image: gitlab/gitlab-runner:latest
    depends_on:
      - gitlab
    hostname: 'runner'
    links:
      - gitlab
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /srv/gitlab-runner/config:/etc/gitlab-runner
    environment:
      - INIT_LOG=/var/log/gitlab_ci_runner.log
      - CI_SERVER_URL=http://gitlab:9090/ci

Add gitlab-ce to test on local
Add gitlab-ce to test on local
