- Enabled services that are explicitly requested even when their `profiles` aren't activated.
- Fixed a `config` issue when the declared `env_file` is missing.
- Passed BuildOptions to `up` and `run` commands.
## 2.21.0
{{< release-date date="2023-08-30" >}}
> [!NOTE]
>
> The format of `docker compose ps` and `docker compose ps --format=json` changed to better align with `docker ps` output. See [compose#10918](https://github.com/docker/compose/pull/10918).
### Update
- Dependencies upgrade: bump compose-go to v1.18.3
### Bug fixes and enhancements
- Changed `docker compose ps` and `docker compose ps --format=json` output to align with Docker CLI.
- Added support for multi-document YAML files.
- Added support for loading remote Compose files from Git repos with `include` (experimental).
- Fixed incorrect proxy variables during build.
- Fixed truncated container logs on container exit.
- Fixed "no such service" errors when using `include` with `--profile`.
- Fixed `.env` overrides when using `include`.
## 2.20.3
{{< release-date date="2023-08-11" >}}
### Update
- Dependencies upgrade: bump golang to 1.21.0
- Dependencies upgrade: bump compose-go to v1.18.1
- Dependencies upgrade: bump buildkit to v0.12.1
### Bug fixes and enhancements
- Improved speed and reliability of `watch` sync.
- Added builder's name on the first build line.
- Improved shell completion for `--project-directory` and `--profile`.
- Fixed build issue with proxy configuration not passing to legacy builder.
- Removed unnecessary warning when an option dependency exists successfully.
## 2.20.2
{{< release-date date="2023-07-19" >}}
### Bug fixes and enhancements
- Added support for the `depends_on.required` attribute.
- Fixed an issue where build tries to push unnamed service images.
- Fixed a bug which meant the target secret path on Windows was not checked.
- Fixed a bug resolving build context path for services using `extends.file`.
## 2.20.1
{{< release-date date="2023-07-18" >}}
### Update
- Dependencies upgrade: bump golang to 1.20.6
- Dependencies upgrade: bump buildx to v0.11.2
- Dependencies upgrade: bump buildkit to v0.12
- Dependencies upgrade: bump docker-cli to v24.0.5-dev
## 2.20.0
{{< release-date date="2023-07-11" >}}
### Update
- Dependencies upgrade: bump docker/cli-docs-tools to v0.6.0
- Dependencies upgrade: bump docker to v24.0.4
- Dependencies upgrade: bump buildx to v0.11.1
### Bug fixes and enhancements
* Introduced the `wait` command.
* Added support of `--builder` and `BUILDX_BUILDER` to the `build` command.
* Added support for the `include` and `attach` attributes from the Compose Specification.
* Fixed a DryRun mode issue when initializing CLI client.
* Fixed a bug with random missing network when a service has more than one.
* Fixed the Secrets file permission value to comply with the Compose Specification.
* Fixed an issue about `no-deps` flag not being applied.
* Fixed some source code comments.
* Fixed a bug when `--index` is not set select.
* Fixed a process leak in the wait e2e test.
* Improved some test speeds.
## 2.19.1
{{< release-date date="2023-06-29" >}}
### Update
- Dependencies upgrade: bump compose-go to v1.15.1
### Bug fixes and enhancements
- Fixed sporadic "container not connected to network" errors on `compose up`.
- Fixed "please specify build context" errors on `compose build`.
- Compose now warns if using a bind mount in a service `watch` configuration.
## 2.19.0
{{< release-date date="2023-06-21" >}}
### Update
- Dependencies upgrade: bump compose-go to v1.15.0
- Dependencies upgrade: bump buildx to v0.11.0
- Dependencies upgrade: bump docker to v24.0.2
- Dependencies upgrade: bump golang to 1.20.5
### Bug fixes and enhancements
- Introduced the ability to select a single service to be stopped by `compose down`.
- Added `--progress` as top-level flag to configure progress UI style.
- Introduced `run --cap-add` to run maintenance commands using service image.
- Fixed a bug during detection of swarm mode.