- 主机1:192.168.0.65 swarm01 角色:manager,worker
- 主机2:192.168.0.66 swarm02 角色:manager,worker
- 主机3:192.168.0.67 swarm03 角色:manager,worker
- 反向代理:Treafik,有v1.7和v2两个版本,其他服务主要基于traefik:v2来反向代理
- docker UI:portainer
- 数据库:mysql,redis,mongo
- 其他:zookeeper,kafka,dubbo,rabbitmq,haproxy
docker network create -d overlay --attachable traefik-public
docker network create -d overlay newproject
docker stack deploy -c ./traefik\ v2/docker-compose-traefik.yml reverse_proxy
docker stack deploy -c ./portainer/docker-compose-portainer-agent.yml tool
docker stack deploy -c ./redis/docker-compose-redis.yml newproject_db
docker stack deploy -c ./mongo/docker-compose-mongo.yml newproject_db
docker stack deploy -c ./mysql/docker-compose-mysql.yml newproject_db
docker stack deploy -c ./rabbitmq/docker-compose-rabbitmq.yml newproject_queue
docker stack deploy -c ./haproxy/docker-compose-haproxy.yml newproject_queue
docker stack deploy -c ./zookeeper/docker-compose-zookeeper.yml newproject_service
docker stack deploy -c ./dubbo/docker-compose-dubbo.yml newproject_service
docker stack deploy -c ./kafka/docker-compose-kafka.yml newproject_service
docker stack deploy -c ./swarmprom/docker-compose-traefik-v2-http.yml newproject_monitor
docker stack deploy -c ./elk/docker-compose-elk.yml newproject_log