> [!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/).