Deploy or update a swarm stack from a Compose file.
Section: Swarm Services
Deploy a stack
bash
bash
docker stack deploy -c compose.yaml mystackExplanation
A convenient higher-level workflow for multi-service swarm apps.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Swarm Services