We’ll walk through new Docker Compose features the team has built, share what we plan to work on next, and remind you to switch to https://docs.docker.com/compose/compose-v2/ as soon as possible. Compose V1 support will no longer be provided after June 2023 and will be removed from all future Docker Desktop versions. If you’re still on Compose V1, we recommend you switch as soon as possible to leave time to address any issues with running your Compose applications.
Using ssh resources ssh was introduced in Compose V2.4.0 GA and lets you use ssh resources at build time.
And using the docker compose build --no-cache --progress=plain --ssh default command will pass your local ssh agent to Compose.