> **Note** > > The `docker stack deploy` command uses the legacy > [Compose file version 3](/compose/compose-file/compose-file-v3/) > format, used by Compose V1. The latest format, defined by the > [Compose specification](/compose/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/).