diff --git a/compose/swarm.md b/compose/swarm.md index bc637417c7..8584925827 100644 --- a/compose/swarm.md +++ b/compose/swarm.md @@ -160,15 +160,15 @@ environment variables, so you can use Compose's `environment` option to set them. # Schedule containers on a specific node - labels: + environment: - "constraint:node==node-1" # Schedule containers on a node that has the 'storage' label set to 'ssd' - labels: + environment: - "constraint:storage==ssd" # Schedule containers where the 'redis' image is already pulled - labels: + environment: - "affinity:image==redis" For the full set of available filters and expressions, see the [Swarm