Docker Compose - 2 Spring Boot applications dependent on each other running by using docker compose

Share this & earn $10
Mike Møller Nielsen
Published at : 06 Feb 2021
2237 views
48
3

Two Spring Boot applications running in each docker image being build with docker-compose. Then they spun up also by using docker compose.
I have used a command center application and a spaceship application as demo applications in this case.
Both are exposing rest endpoints that gives a status and a destination for the spaceship.
Enjoy! :-)
Feel free to leave me a comment or questions.
The code is located here:
https://github.com/ekim197711/springboot-docker-compose

Follow me on twitter:
https://twitter.com/MikeMoelNielsen
javaspringbootspringframework

AWS Amplify DataStore with SwiftUI 2.0 | Todo App

AWS Amplify DataStore with SwiftUI 2.0 | Todo App

Shakatak - Down On The Street

Shakatak - Down On The Street

Illustrator Tutorial: How to make a logo from photo

Illustrator Tutorial: How to make a logo from photo

In Point of Fact

In Point of Fact

(ENG SUB)【Kagamine Rin & Len】 Try to Say the Kagamine P Names!【552 People】

(ENG SUB)【Kagamine Rin & Len】 Try to Say the Kagamine P Names!【552 People】

Revised Penal Code (RPC) Book 1. Complex Crime Art. 48

Revised Penal Code (RPC) Book 1. Complex Crime Art. 48

Konata Small - Ruckus (Fortnite Chapter 2 Official Music Video)

Konata Small - Ruckus (Fortnite Chapter 2 Official Music Video)

Using Speech Marks | Punctuating Direct Speech | EasyTeaching

Using Speech Marks | Punctuating Direct Speech | EasyTeaching

Today Show with Chef Jernard Wells!

Today Show with Chef Jernard Wells!

Dude Where's My Car - "And Then"

Dude Where's My Car - "And Then"

Rather than

Rather than

No One Born Ugly,We’re Just Born With Judgmental Society 😏🧠

No One Born Ugly,We’re Just Born With Judgmental Society 😏🧠

Another 'Furry' Creature in the Facility? | Neglected (Part 2)

Another 'Furry' Creature in the Facility? | Neglected (Part 2)

Bishop Nehru - User$ (Official Video)

Bishop Nehru - User$ (Official Video)

Compound sentence and Complex sentence

Compound sentence and Complex sentence

Find this article

Find this article

I Am Absurdly Cruel To Golfers | GolfTopia (Part 3)

I Am Absurdly Cruel To Golfers | GolfTopia (Part 3)

Earning $2000 A MONTH?! Staking Cryptocurrency | Passive Income W/ NRG and Crypto Earn

Earning $2000 A MONTH?! Staking Cryptocurrency | Passive Income W/ NRG and Crypto Earn

12-tone/serialism/atonality   How to Fill out the Magic Square - -

12-tone/serialism/atonality How to Fill out the Magic Square - -

Butterfingers - Faculties Of The Mind - Dave Does Reactions

Butterfingers - Faculties Of The Mind - Dave Does Reactions

Breaking News: Jasprit BUMRAH ruled OUT of 4th TEST | Redmi 9 Power presents 'Thunder Down Under'

Breaking News: Jasprit BUMRAH ruled OUT of 4th TEST | Redmi 9 Power presents 'Thunder Down Under'

The Engkantos That Could Appear in HBO's Halfworlds | Esquire Philippines

The Engkantos That Could Appear in HBO's Halfworlds | Esquire Philippines

Rihanna - Kiss It Better (Explicit)

Rihanna - Kiss It Better (Explicit)

PREMIERE: G2S - Amako [In Any Case]

PREMIERE: G2S - Amako [In Any Case]

YEA SIS.... I CANT BELIEVE ITS SYNTHETIC EITHER!! | $34 AMAZON 13X6 LACE FRONT WIG

YEA SIS.... I CANT BELIEVE ITS SYNTHETIC EITHER!! | $34 AMAZON 13X6 LACE FRONT WIG

It might be 'your tax dollars, but it truly is their ABC'

It might be 'your tax dollars, but it truly is their ABC'

Cycling the Pennsylvania Turnpike

Cycling the Pennsylvania Turnpike

Counterfeit Components and Systems

Counterfeit Components and Systems

VmWare Workstation: Виртуальная Машина | Установка и Настройка в Windows 10 | UnderMind

VmWare Workstation: Виртуальная Машина | Установка и Настройка в Windows 10 | UnderMind

IEŠKOME NAUJŲ LOKACIJŲ (smagūs nuotykiai) #5 GTA RP (PBNM serveris) lietuviškai

IEŠKOME NAUJŲ LOKACIJŲ (smagūs nuotykiai) #5 GTA RP (PBNM serveris) lietuviškai

4 Downs with Rich: Eisen on Dolphins’ Draft, Giants on a Run, 16-0 Steelers & More! | 11/17/20

4 Downs with Rich: Eisen on Dolphins’ Draft, Giants on a Run, 16-0 Steelers & More! | 11/17/20

k.d. lang & Elton John "Sorry Seems To Be The Hardest Word"

k.d. lang & Elton John "Sorry Seems To Be The Hardest Word"

Placebo - Running Up That Hill

Placebo - Running Up That Hill

Aaron Rodgers Just Exposed The LA Rams BIGGEST Problem (FT. Jared Goff)

Aaron Rodgers Just Exposed The LA Rams BIGGEST Problem (FT. Jared Goff)

Why cross-border e-commerce is tougher than most business owners think

Why cross-border e-commerce is tougher than most business owners think

Angélique

Angélique

[MV] GRAY(그레이) _ Just Like The Rain (Twenty-Twenty(트웬티트웬티) Part.2)

[MV] GRAY(그레이) _ Just Like The Rain (Twenty-Twenty(트웬티트웬티) Part.2)

New Holland 4710 Tractor- Best Suited for Puddling Application

New Holland 4710 Tractor- Best Suited for Puddling Application

Nomy - I have a problem / Lyrics

Nomy - I have a problem / Lyrics

HOW TO FARM ABILITY CHUNKS(EASY & CHEAP) | SPLATOON 2

HOW TO FARM ABILITY CHUNKS(EASY & CHEAP) | SPLATOON 2

Day Break S01E03

Day Break S01E03

La DERROTA de los BICAMPEONES Y La INJUSTICIA a TATA 😭 | Red Bull Internacional 2020

La DERROTA de los BICAMPEONES Y La INJUSTICIA a TATA 😭 | Red Bull Internacional 2020

4 SIGNS YOU ARE EXTREMELY OUT OF SHAPE

4 SIGNS YOU ARE EXTREMELY OUT OF SHAPE

Passenger | The Wrong Direction (Official Video)

Passenger | The Wrong Direction (Official Video)

OMULIMISA : Ennima y'akatunda n'okafunamu.  BBBB

OMULIMISA : Ennima y'akatunda n'okafunamu. BBBB

YEAR ENDED|FIRST NEW YEAR WITH OUR LITTLE ANGLE

YEAR ENDED|FIRST NEW YEAR WITH OUR LITTLE ANGLE

I FaceTimed my EX boyfriend.... .

I FaceTimed my EX boyfriend.... .

Golden Eagle in a Hunting Stoop

Golden Eagle in a Hunting Stoop

Generating Electricity By Walking - Google Science Fair 2014

Generating Electricity By Walking - Google Science Fair 2014