the demo contains 4 services
- config:8888
- registry(eureka):8761
- gateway(zuul):8080
- service-1:8080
pre
- load the sql file
- change the database host and port
- ...
localhost run
- run config --> registry --> service-1 --> gateway
docker run
- cd spring-cloud-demo
- docker-compose build (build images)
- docker-compose up -d config (run config)
- docker-compose up -d (run other services)
- docker-compose logs (print logs)