Docker Compose V3 multiple replicas per node

Using the new compose v3 format how do I create multiple replicas of a service per node without duplicating the service within the compose file.

version: '3'
services:
  ...
  service1:
    ...
    deploy:
      mode: global
      replicas: 2 # Is there a way to do this

Why do you want this?