title: Docker swarm with compose file, set architecture to arm64
body: <p>I have a problem with a cluster of arm64 machines not starting the containers. All of them stay as 0/2, 0/1 ect. This seem to be due to the scheduling setup to deploy them on amd64 instead of arm64 but I can't find where to change this (I assume there is a docker-compose config for this).</p>
  
  <pre><code>$ sudo docker service ls                                                                                                                             1 ↵
  ID                  NAME                         MODE                REPLICAS            IMAGE                                                  PORTS
  t761cgtu2n4o        persistence_mariadb          replicated          0/1                 mojlighetsministeriet/mariadb-arm64:latest             *:3306-&gt;3306/tcp
  l1gxlfuwtfs9        services_email               replicated          0/2                 mojlighetsministeriet/email-arm64:latest               
  6o1ud2la0eig        services_groups              replicated          0/2                 mojlighetsministeriet/groups-arm64:latest     
  </code></pre>
  
  <p>When inspecting a service I get:</p>
  
  <pre><code>        "Placement": {                        
              "Platforms": [                    
                  {                                                                                                                                                                        
                      "Architecture": "amd64",
                      "OS": "linux"
                  }
              ]
          },
  </code></pre>
  
  <p>I'm using docker-compose files to configure the services, how can I mark the images to run on arm64 machines (the images starts fine on the arm64 machines with $ docker run)?</p>
  
  <p>This is an example of the config for one service:</p>
  
  <pre><code>  email:
      image: mojlighetsministeriet/email-arm64
      secrets:
        - smtp-password
      environment:
        SMTP_HOST: smtp.example.com
        SMTP_PORT: 587
        SMTP_EMAIL: user@example.com
      deploy:
        replicas: 2
        update_config:
          parallelism: 1
          delay: 10s
          failure_action: continue
          monitor: 60s
          max_failure_ratio: 0.3
        restart_policy:
          condition: on-failure
          delay: 5s
          max_attempts: 3
          window: 120s
        labels:
          - traefik.docker.network=proxy
          - traefik.port=80
          - traefik.enable=true
      networks:
        - proxy
  </code></pre>