The `docker-compose` CLI (Compose v1, written in Python) reached end of life in May 2024. Docker Inc. no longer maintains or patches it. The replacement is Docker Compose v2 — the `docker compose` plugin (no hyphen) bundled with Docker Engine 23.0+ and Docker Desktop. v2 is written in Go and is a full superset of v1 with the same YAML file format.
Workarounds & Fixes
Install Compose v2: included in Docker Engine via `docker-compose-plugin` package
Migrate: replace `docker-compose` with `docker compose` in all scripts and CI configs
Temporary alias: `alias docker-compose="docker compose"` in ~/.bashrc