Running drone pipeline with several docker containers

Hello,

In several projects, we have integration tests with for example a database. With circle-ci it is defined at the beginning of each job :

build_back:
    docker:
      - image: circleci/openjdk:8-stretch
      - image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1
    ...

The first contains the workflow running all the steps.

We tried with drone exec and docker run but as explained in the documentation there are isolation issues.

Is there a way for doing so with drone ?
If not how would you do as a workaround ?

Thank you for your answers.

Bruno Thomas

I answer my question : we found the services section that allows to execute other docker containers.

kind: pipeline
type: docker
name: default

steps:
  - name: test
    image: ruby:2.7
    commands:
      - bundle install
      - bundle exec rspec

services:
  - name: mysql
    image: mysql:8