docker/setup-compose-action

GitHub Action to set up Docker Compose

45

stars

214

commits

TypeScript

primary language

Sep 5, 2026

updated

github.com/marketplace/actions/docker-setup-compose
compose
docker
docker-compose
github-actions
github-actions-docker
Browse cluster: Docker and GitHub Actions tooling

README

GitHub release GitHub marketplace CI workflow Test workflow Codecov

About

GitHub Action to set up Docker Compose.

Screenshot


Usage

name: ci

on:
  push:

jobs:
  compose:
    runs-on: ubuntu-latest
    steps:
      -
        name: Set up Docker Compose
        uses: docker/setup-compose-action@v2

[!NOTE] If Docker Compose is already installed on the runner, the action will skip download. Otherwise, it will download and install the latest stable version available on GitHub.

To always download and install the latest version of Docker Compose:

      -
        name: Set up Docker Compose
        uses: docker/setup-compose-action@v2
        with:
          version: latest

Customizing

inputs

The following inputs can be used as step.with keys:

NameTypeDefaultDescription
versionStringCompose version. (eg. v2.32.4, latest)
cache-binaryBooltrueCache compose binary to GitHub Actions cache backend

Contributing

Want to contribute? Awesome! You can find information about contributing to this project in the CONTRIBUTING.md

Contributors

docker/setup-compose-action

GitHub Action to set up Docker Compose

45

stars

214

commits

TypeScript

primary language

Sep 5, 2026

updated

github.com/marketplace/actions/docker-setup-compose
compose
docker
docker-compose
github-actions
github-actions-docker
Browse cluster: Docker and GitHub Actions tooling

README

GitHub release GitHub marketplace CI workflow Test workflow Codecov

About

GitHub Action to set up Docker Compose.

Screenshot


Usage

name: ci

on:
  push:

jobs:
  compose:
    runs-on: ubuntu-latest
    steps:
      -
        name: Set up Docker Compose
        uses: docker/setup-compose-action@v2

[!NOTE] If Docker Compose is already installed on the runner, the action will skip download. Otherwise, it will download and install the latest stable version available on GitHub.

To always download and install the latest version of Docker Compose:

      -
        name: Set up Docker Compose
        uses: docker/setup-compose-action@v2
        with:
          version: latest

Customizing

inputs

The following inputs can be used as step.with keys:

NameTypeDefaultDescription
versionStringCompose version. (eg. v2.32.4, latest)
cache-binaryBooltrueCache compose binary to GitHub Actions cache backend

Contributing

Want to contribute? Awesome! You can find information about contributing to this project in the CONTRIBUTING.md

Contributors

Languages

TypeScript

47.7%

Dockerfile

26.4%

JavaScript

13.1%

HCL

12.8%