How does Docker Swarm use different configurations on different hosts?

problem description

different machines have different configurations . PHP is run by cli (actually, it"s workerman), so set the number of worker
take a look at swarm , and add some deploy configuration

to the compose file.

version: "3"

services:
  wordpress:
    image: wordpress
    ports:
      - 80:80
    networks:
      - overlay
    environment:
      WORDPRESS_DB_HOST: db:3306
      WORDPRESS_DB_USER: wordpress
      WORDPRESS_DB_PASSWORD: wordpress
    deploy:
      mode: replicated
      replicas: 3
   //...

clipboard.png
the manager node puts the copy in the worker (manager itself can also be used as a worker), problem. Do different machines need different configurations?
how to solve this? (swarm may be considering the same configuration of all machines)

Sep.11,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eabba3-47e3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eabba3-47e3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?