GitHub Action to set up Docker Compose
Find a file
CrazyMax d37dd72e1d
Merge pull request #118 from docker/dependabot/npm_and_yarn/js-yaml-4.3.0
chore(deps): bump js-yaml from 4.1.1 to 4.3.0
2026-07-01 14:12:47 +02:00
.github Merge pull request #109 from docker/dependabot/github_actions/actions/checkout-7.0.0 2026-07-01 14:09:05 +02:00
__tests__ fix some nits to be consistent across actions 2026-03-02 09:47:03 +01:00
dist Merge pull request #118 from docker/dependabot/npm_and_yarn/js-yaml-4.3.0 2026-07-01 14:12:47 +02:00
src switch to ESM and update config/test wiring 2026-02-27 14:01:57 +01:00
.dockerignore initial version 2025-01-20 13:05:32 +01:00
.editorconfig 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 switch to ESM and update config/test wiring 2026-02-27 14:01:57 +01:00
.yarnrc.yml chore: allow actions-toolkit to bypass yarn age gate 2026-07-01 11:43:34 +02:00
action.yml replace ncc with esbuild for action bundling 2026-04-24 11:18:23 +02:00
codecov.yml initial version 2025-01-20 13:05:32 +01:00
dev.Dockerfile fix: use lockfile-aware install commands 2026-06-15 14:22:04 +00:00
docker-bake.hcl initial version 2025-01-20 13:05:32 +01:00
eslint.config.mjs switch to ESM and update config/test wiring 2026-02-27 14:01:57 +01:00
LICENSE chore: license 2025-01-20 12:13:06 +01:00
package.json preserve names in esbuild bundle 2026-06-29 15:04:20 +02:00
README.md readme: update to v2 2026-03-02 14:39:11 +01:00
tsconfig.json fix some nits to be consistent across actions 2026-03-02 09:47:03 +01:00
vitest.config.ts fix some nits to be consistent across actions 2026-03-02 09:47:03 +01:00
yarn.lock Merge pull request #118 from docker/dependabot/npm_and_yarn/js-yaml-4.3.0 2026-07-01 14:12:47 +02: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@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:

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