Home Explore Blog CI



docker

1st chunk of `content/includes/swarm-compose-compat.md`
015163a70c81e61a5731d5a115f9915208d86c904ccea074000000010000019c
> [!NOTE]
>
> The `docker stack deploy` command uses the legacy
> [Compose file version 3](/reference/compose-file/legacy-versions/)
> format, used by Compose V1. The latest format, defined by the
> [Compose specification](/reference/compose-file/)
> isn't compatible with the `docker stack deploy` command.
>
> For more information about the evolution of Compose, see
> [History of Compose](/compose/history/).

Title: Docker Stack Deploy and Compose File Versions
Summary
The `docker stack deploy` command utilizes the older Compose file version 3 format, which is not compatible with the latest Compose specification. Refer to the Compose documentation for details on the evolution and history of Compose.