Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 1.06 KB

README.md

File metadata and controls

68 lines (44 loc) · 1.06 KB

quick start

convention

In the demonstration, gateway, eureka server and service provider are all running on same machine.

Please change your configuration to match your devops environment.

prepare

  1. run ifconfig to get your ip address.
ifconfig
  1. and update .env file.
DEVOPS_HOST=192.168.31.42
EUREKA_SERVICE_URL=http://${DEVOPS_HOST}:8761/eureka/
MONGODB_HOST=mongodb
MONGODB_PORT=27017
REDIS_HOST=redis
REDIS_PORT=6379

how

  1. build

build all if it's the first time to start it up.

gradle clean build
docker-compose build
  1. start
docker-compose up -d
docker-compose ps
  1. stop
docker-compose down

what

please make sure the eureka registry is started up (see spring cloud boilerplate )

4 nodes are created

  • openapi server 1
  • openapi server 2
  • mongodb server
  • redis server

openapi server 1 & 2 shared the session by redis server

Refz