version: '3' services: db: image: postgres deploy: placement: constraints: - node.hostname == machine - engine.labels.operatingsystem == ubuntu 14.04