Skip to content

FH-Tutorials/microservice-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice Demo

This demo illustrates how to connect two services using a docker compose configuration

Pre-Requisites

Build

install gradle-wrapper

If you use gradle install the wrapper first

gradle wrapper

Services

Next you need to build the services by calling

./gradlew build

from directory child as well as from directory parent. There might be some warnings during compilation which can be ignored.

After compilation has been successful for both directories in each of them a executable jar file has been created with the same name:

[child|parent]/build/libs/gs-spring-boot-docker-0.1.0.jar.

compose docker images

Going back to the root directory of that service example where docker-compose.yml is laying the docker images can be build using the following command

docker-compose build

Run

When building has been successful it is finally possible to run the containers by calling

docker-compose up

You may add the option -d in order to run detached mode.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published