diff --git a/compose/swarm.md b/compose/swarm.md index e377c63f7c..cae88e2dbd 100644 --- a/compose/swarm.md +++ b/compose/swarm.md @@ -82,15 +82,15 @@ all three services end up on the same node: image: foo volumes_from: ["bar"] network_mode: "service:baz" - labels: + environment: - "constraint:node==node-1" bar: image: bar - labels: + environment: - "constraint:node==node-1" baz: image: baz - labels: + environment: - "constraint:node==node-1" ### Host ports and recreating containers @@ -169,4 +169,4 @@ them. - "affinity:image==redis" For the full set of available filters and expressions, see the [Swarm -documentation](/swarm/scheduler/filter.md). \ No newline at end of file +documentation](/swarm/scheduler/filter.md).