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
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
//...
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)