GitHub Action to set up Docker Compose https://github.com/marketplace/actions/docker-setup-compose
Find a file
CrazyMax 23d018c8d3
Merge pull request #22 from docker/dependabot/github_actions/actions/checkout-5
chore(deps): bump actions/checkout from 4 to 5
2025-10-03 15:35:52 +02:00
.github chore(deps): bump actions/checkout from 4 to 5 2025-08-12 10:07:04 +00:00
.yarn/plugins/@yarnpkg initial version 2025-01-20 13:05:32 +01:00
__tests__ initial version 2025-01-20 13:05:32 +01:00
dist chore: update generated content 2025-06-16 14:30:32 +02:00
src initial version 2025-01-20 13:05:32 +01:00
.dockerignore initial version 2025-01-20 13:05:32 +01:00
.editorconfig initial version 2025-01-20 13:05:32 +01:00
.eslintignore initial version 2025-01-20 13:05:32 +01:00
.eslintrc.json initial version 2025-01-20 13:05:32 +01:00
.gitattributes initial version 2025-01-20 13:05:32 +01:00
.gitignore initial version 2025-01-20 13:05:32 +01:00
.prettierignore initial version 2025-01-20 13:05:32 +01:00
.prettierrc.json initial version 2025-01-20 13:05:32 +01:00
.yarnrc.yml initial version 2025-01-20 13:05:32 +01:00
action.yml initial version 2025-01-20 13:05:32 +01:00
codecov.yml initial version 2025-01-20 13:05:32 +01:00
dev.Dockerfile initial version 2025-01-20 13:05:32 +01:00
docker-bake.hcl initial version 2025-01-20 13:05:32 +01:00
jest.config.ts initial version 2025-01-20 13:05:32 +01:00
LICENSE chore: license 2025-01-20 12:13:06 +01:00
package.json chore(deps): bump @docker/actions-toolkit from 0.56.0 to 0.62.1 2025-05-28 01:16:26 +00:00
README.md docs to download latest version 2025-01-27 12:40:56 +01:00
tsconfig.json initial version 2025-01-20 13:05:32 +01:00
yarn.lock chore(deps): bump @docker/actions-toolkit from 0.56.0 to 0.62.1 2025-05-28 01:16:26 +00:00

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@v1

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@v1
        with:
          version: latest

Customizing

inputs

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

Name Type Default Description
version String Compose version. (eg. v2.32.4, latest)
cache-binary Bool true Cache 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