# Docker Compose v2.27.2 - Release & Upgrade Intelligence
- **Product:** Docker Compose (https://docs.docker.com/compose/)
- **Version:** v2.27.2
- **Released:** Jun 20, 2024
- **Impact Score:** 4/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/docker-compose/updates/v2.27.2/

## Executive Summary (TL;DR)
Docker Compose v2.27.2 introduces the new --environment flag for the config command alongside essential bug fixes for environment variable handling and process management. The update also bumps core dependencies including Go 1.21.11, BuildKit, and Buildx.

## Improvements
- Add --environment flag to config command

## Bug Fixes
- Prevent concurrent map write relying on project immutability
- Fix COMPOSE_PROFILES can be set by .env file
- Fix: change append to use slice index in ps
- Return an error when --detach and --watch are used together in up command
- Fix dot env file to define COMPOSE_* variables
- Enforce keyboard.Close is always executed to restore terminal
- Stop watch process when associated up process is stopped
- Using as flag of the up command, watch was blocking process shutdown
