-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Simple gif showing how to setup project, run, and scale it:
This is somehow an environment to run and scale microservices.
To know about its goals, read: https://github.com/armand1m/microservices/wiki/Goal
This project actually is only a project that has a docker-compose.yml
file with some services defined, that are also git submodules
.
These services connect to a consul instance in order to be found by the ebay/fabio
instance, so it can load balance and be used as an API Gateway for them.
Essentially, a service is just a RESTful API that can register and deregister itselfs from a Service Discovery instance.
To know more, read: https://github.com/armand1m/microservices/wiki/What-is-a-Service
Make sure you have Docker Daemon running. Make sure you have Git and Docker Compose installed.
# initialize the project and its submodules
$ ./install.sh
# build the services images
$ ./commands/build
# run the environment
$ ./commands/run
Some useful urls:
- Gateway Entrypoint:
http://localhost:9999/
- Gateway Route Table:
http://localhost:9998/
- Service Discovery Monitoring Panel:
http://localhost:8500/
Refer to armand1m/microservice-compose-utils README.md to know more.
You can use docker-compose
commands normally as well, the project above has only some really simple bash
files to speed up common tasks.