docker-compose up with error "HTTPConnectionPool(host='docker', port=2375): Read timed out."

Summary

During the execution of a pipeline, with multi-ci-runner, which makes use of services started with docker-compose, I get a timeout error for one of the service

What is the current bug behavior?

Status: Downloaded newer image for gitlab.cdp.it:5001/cdp/keycloak:2.5.0
Creating docker_wiremock_1
Creating docker_apacheds_1
Creating docker_postgres_1
Creating docker_keycloak_1

ERROR: for keycloak  HTTPConnectionPool(host='docker', port=2375): Read timed out. (read timeout=60)
Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "compose/cli/main.py", line 61, in main
  File "compose/cli/main.py", line 113, in perform_command
  File "contextlib.py", line 35, in __exit__
  File "compose/cli/errors.py", line 56, in handle_connection_errors
TypeError: log_timeout_error() takes exactly 1 argument (0 given)

Relevant logs and/or screenshots

My .gitlab-ci.yml file containes:

variables:
  GROUP_NAME: galileo-tracking
  SERVICE_NAME: galileo-tracking-services
  DOCKER_IMAGE: $CI_REGISTRY/$GROUP_NAME/$SERVICE_NAME
image: $CI_REGISTRY/cdp/docker
services:
  -  docker:dind
stages:
  - test-unit

test-unit-master:
  stage: test-unit
  variables:
    DOCKER_TAG: $CI_BUILD_REF_NAME
    PIPELINE_UNIT: "true"
  script:
     - docker pull $DOCKER_IMAGE:$DOCKER_TAG
     - docker-compose -f ./docker/docker-compose-pipeline.yml up
     - docker/wait-for-it.sh docker:9990 -t 120
     - sleep 15
     - mvn -Ppipeline-unit-test verify
     - docker logs docker_galileo_1
     - mkdir -p artifacts/docker/logs
     - docker logs docker_galileo_1 1> artifacts/docker/logs/docker_galileo_1.log 2> artifacts/docker/logs/docker_galileo_1.err
     - docker logs docker_wiremock_1 1> artifacts/docker/logs/docker_wiremock_1.log 2> artifacts/docker/logs/docker_wiremock_1.err
     - docker logs docker_postgres_1 1> artifacts/docker/logs/docker_postgres_1.log 2> artifacts/docker/logs/docker_postgres_1.err
  allow_failure: false
  artifacts:
    paths:
      - artifacts/**/*.*
    name: "${CI_BUILD_STAGE}_${CI_BUILD_REF_NAME}"
   untracked: true
    when: always
    expire_in: 1 week
  tags:
    - galileo
    - build
  only:
    - master

and the docker-compose-pipeline.yml contains:

version: "2"

services:
  
keycloak:
    extends:
        file: keycloak.yml
        service: keycloak
        
postgres:
    extends:
        file: postgres.yml
        service: postgres

wiremock:
    extends:
        file: wiremock.yml
        service: wiremock

apacheds:
    extends:
        file: apacheds.yml
        service: apacheds    
    ports:
        - "10389:10389"

galileo:
    build:
        context: ..
        dockerfile: Dockerfile
        args:
            LDAP_HOSTNAME: apacheds
    image: gitlab.cdp.it:5001/galileo-tracking/galileo-tracking-services:local
    networks:
        - galileo
    links:
        - postgres
        - wiremock
        - keycloak
    ports:
        - "8080:8080"
        - "9990:9990"
        - "9993:9993"
        - "9999:9999"
        - "8009:8009"
        - "4712:4712"
        - "4713:4713"
    privileged: true
    environment:
        - DB_HOSTNAME=postgres
        - LOCAL_UNIT=true

volumes:
   postgres_data:
   wiremock_files:
   wiremock_mappings:

networks:
    galileo:
        driver: bridge

with keycloak.yml:

version: "2"

services:

     keycloak:
        image: gitlab.cdp.it:5001/cdp/keycloak:2.5.0
        networks:
            - galileo
        ports:
          - "8443:8443"
        privileged: true
        environment:
            - KEYCLOAK_USER = keycloak
            - KEYCLOAK_PASSWORD = keycloak  
    
networks:
    galileo:
        driver: bridge

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Assignee Loading
Time tracking Loading