Skip to content

This project aims to connect two different services from containers using default network

Notifications You must be signed in to change notification settings

jayzsuarez/docker-services-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Docker Implementation - Two Services Connected from Different Container

How to Run:

  1. Navigate to cards-api

Run: docker build -t api-service-one:0.0.1-SNAPSHOT .

  1. Navigate to cards-api

Run: docker build -t api-service-two:0.0.1-SNAPSHOT .

  1. Run the services

docker-compose up

  1. Test the services

    http://0.0.0.0:6088/ -> it will call the http://client-api:6089/ http://0.0.0.0:6088/test -> call the same host default message (cards-api) http://0.0.0.0:6089/ -> it will call the http://cards-api:6089/test http://0.0.0.0:6089/test -> call the same host default message (client-api)

About

This project aims to connect two different services from containers using default network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published