docker swarm with spring cloud

https://github.com/savicprvoslav/spring-cloud-config-eureka-docker

https://dzone.com/articles/deploying-microservices-spring-cloud-vs-kubernetes

Spring Cloud with Spring Config and Eureka in high availability using docker swarm

docker service create --name zuul-server --publish 8081:8081 --replicas 1 10.128.222.245:5000/zuul-server:latest

api访问地址:
http://10.128.223.234:2219/swagger-ui.html

zuul路由访问地址:
http://10.128.223.234:8081/zdhd_api/swagger-ui.html

Open protocols and ports between the hosts
https://docs.docker.com/engine/swarm/swarm-tutorial/#open-protocols-and-ports-between-the-hosts
  • TCP port 2377 for cluster management communications
  • TCP and UDP port 7946 for communication among nodes
  • UDP port 4789 for overlay network traffic

你可能感兴趣的:(Docker,DockerSwarm)