Skip to content

nietzscheson/microservices-federation

Repository files navigation

Microservices Federation Project

This is a Docker (with docker-compose) environment for Microservices Federation Project. Is a example that how we can to federate multiples microservices using Apollo Federation. Each schema in each microservice works independently. With Apollo Federation they are combine into a single graph.

Microservices Federation

Installation

  1. First, clone this repository:
git clone https://github.com/nietzscheson/microservices-federation
  1. Init project
make
  1. Show containers:
make ps

This results in the following running containers:

docker-compose ps
 Name                Command                  State               Ports
--------------------------------------------------------------------------------
gateway   docker-entrypoint.sh /bin/ ...   Up             0.0.0.0:4000->80/tcp
order     sh ./entrypoint.sh flask r ...   Up (healthy)   0.0.0.0:5003->5000/tcp
product   sh ./entrypoint.sh flask r ...   Up (healthy)   0.0.0.0:5002->5000/tcp
user      sh ./entrypoint.sh flask r ...   Up (healthy)   0.0.0.0:5001->5000/tcp

The microservices are running in:

  1. Run test:
make test