In this section, we will set up BrownField microservices on the EC2 instances created. In this case, the build is set up in the local desktop machine, and the binaries will be deployed to AWS.
Perform the following steps to set up services on an EC2 instance:
sudo apt-get install git
bootstrap.properties
to point to the appropriate Git repository created for this example.bootstrap.properties
of all the microservices to point to the config-server using the private IP address of the EC2 instance.*.properties
from the local Git repository to the EC2 Git repository and perform a commit.*.properties
file to match the EC2 private IP address. Commit the changes to Git once they have been completed.search
, search-apigateway
, and website
microservices. Push all of them to the Docker Hub registry.java –jar config-server.jar java –jar eureka-server.jar docker run –net host rabbitmq:3 docker run --net host -p 8090:8090 rajeshrv/search:1.0 docker run --net host -p 8095:8095 rajeshrv/search-apigateway:1.0 docker run --net host -p 8001:8001 rajeshrv/website:1.0
http://54.165.128.23:8001
.