cker Compose Versions

- Version 1: long since deprecated, but default
- Version 2.x: useful for local development
- Version 3.x: useful for Swarm mode

???

- Always define a version line in your compose file, you do not want v1 syntax
- Swarm mode is a subset of `docker run` features, cannot run privileged
  containers, and various other administrative container settings
- If you do not depend on those features, use a v3 syntax for forward compatibility

---

class: small

# Sample Compose File

```no-hig