Run docker-compose inside snap

I want to run docker-compose inside a snap. But I can’t find the executable. The docker command works.

Here is my snap. What am I missing?

name: docker-snap-usage-example
base: core18
version: "0.1"
summary: Example of using the docker snap from another snap
description: Example of using the docker snap from another snap

grade: stable
confinement: strict

environment:
  DOCKER_CONFIG: $SNAP_COMMON/.docker
  PATH:          $SNAP/docker-snap/bin:$PATH
  PYTHONPATH:    $SNAP/docker-snap/lib/python3.6/site-packages:$PYTHONPATH
plugs:
  docker-executables:
    interface: content
    target: $SNAP/docker-snap
    default-provider: docker

apps:
  docker:
    command: wrapper.sh
    plugs:
      - docker

parts:
  my-part:
    plugin: dump
    prime: ["wrapper.sh"]
    source: .
#wrapper.sh
docker info
docker-compose -v

Is anything speaking against fetching docker-compose as a stage-package and include it with your Snap? In the end it’s just communicating with Docker (either as a Snap or system-wide installation) over a socket that seems to have a stable protocol.

Can you give me an example? Do I need to fetch docker-compose separately?

Here’s an example where I included the docker command (through staging the docker.io package): https://gitlab.com/clickable/clickable/-/blob/master/snap/snapcraft.yaml?ref_type=heads