It includes a rudementary load balancer that accepts traffic on port 80 and balaces it between 3 hard-coded servers using round-robin algorythm
- Clone the repo
$ cd /home
$ git clone git@github.com:KonstantinBelenko/harbour-space-cloud-module.git && cd harbour-space-cloud-module
- Install docker & docker-compose
# Theese scripts are made for AWS Linux (don't use them for other repos)
$ ./scripts/install_docker.sh
$ ./scripts/install_docker-compose.sh
- Build & run docker-compose
# Build docker images
$ docker-compose build
# Run docker-compose in terminal
$ docker-compose run
# OR - run docker-compose in the background
$ docker-compose run -d
/host_id
- This endpoint returns a random uuid/health
- This endpoint tells you if the server is online/change
- This endpoit is only for testing purposes. It changes the state of the server from online to offline and back
- All servers are configured by default to use ports [3000-3002]