discovery-service - service which is based on
the eureka the main purpose is to register an application.
business-service - The service provides the only one endpoint that
returns the application version.
gateway-service - The gateway to business_api with the only one endpoint (/business)
In order to build the services the command should be used:
mvn clean install && docker-compose build
The default environment will be used which is for production and stored in .env file.
For test server this command should be used
mvn clean install && docker-compose --env-file .env-dev build
The command builds the containers using testing environment which is stored in .env-dev file.
To start the app use this command
docker-compose up -d
The command can be launched with additional argument with environment path:
docker-compose --file-env .env-dev up -d
All the necessary environment stored in the "./.env" file.
To use the app send GET request on gateway-service service.
For example if the service deployed on localhost the curl request will be:
GET /business HTTP/1.1
Host: localhost:8082