[Solved] Run docker-compose Within .drone.yml

I would like to run a docker-compose command as one of my pipeline steps, for example here is my .drone.yml file

kind: pipeline
name: cicd

  - name: test
    image: docker/compose
      - docker-compose -f docker-compose-test.yml up -d

It fails on the test step, with the following error message:

Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Any advice will be greatly appreciated!

Turns out I needed to mount the docker socket in order to use the docker from docker pattern. I added the volume mounts using the syntax described by chiborg’s answer http://discuss.harness.io/t/solved-get-cannot-unmarshal-error-when-trying-use-volumes/2243/5