https://github.com/dimensiondataresearch/fabio-registrator-demo
A quick demo using Fabio with Consul and Registrator.
https://github.com/dimensiondataresearch/fabio-registrator-demo
Last synced: 26 days ago
JSON representation
A quick demo using Fabio with Consul and Registrator.
- Host: GitHub
- URL: https://github.com/dimensiondataresearch/fabio-registrator-demo
- Owner: DimensionDataResearch
- License: mit
- Created: 2016-10-04T20:26:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T23:12:29.000Z (about 8 years ago)
- Last Synced: 2025-04-28T19:16:15.649Z (26 days ago)
- Language: C#
- Size: 16.6 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A quick demo - Fabio with Consul and Registrator
## The containers
* [Fabio](https://github.com/eBay/fabio)
Acts as the front-end for APIs
* 2 API end-points (.NET Core)
* 1 x API v1
* 1 x API v2
* [Consul](https://consul.io)
Service discovery / registration
* [Registrator](https://gliderlabs.com/registrator/latest/)
Automatically registers API containers with Consul## Getting started
To build:
```
dotnet restore
dotnet publish src/ApiV1 -f netcoreapp1.1
dotnet publish src/ApiV2 -f netcoreapp1.1
docker-compose build
```To run:
```
docker-compose up
```Then visit http://localhost:5001 for UI or http://localhost:5000/api/v1 / http://localhost:5000/api/v2 for the proxied APIs.