Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strarsis/consul-fabio-example
Example for fabio + consul + registrator
https://github.com/strarsis/consul-fabio-example
Last synced: 13 days ago
JSON representation
Example for fabio + consul + registrator
- Host: GitHub
- URL: https://github.com/strarsis/consul-fabio-example
- Owner: strarsis
- License: mit
- Created: 2015-12-07T19:49:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T20:09:04.000Z (almost 9 years ago)
- Last Synced: 2024-10-18T23:56:24.332Z (about 1 month ago)
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# consul-fabio-example
Example for [fabio](https://github.com/eBay/fabio) + [consul](https://github.com/hashicorp/consul) + [registrator](https://github.com/gliderlabs/registrator) using [docker-compose](https://github.com/docker/compose) ([docker](https://github.com/docker/docker)).Note
----
registrator is currently commented out (disabled) in docker-compose.yaml.Usage
-----
Docker + docker-compose have to be installed.Run consul, registrator, fabio:
````
git clone https://github.com/strarsis/consul-fabio-example
cd consul-fabio-exampledocker-compose up -d
````Run example web node:
````
cd ..
git clone https://github.com/eBay/fabio
cd fabio
export GOPATH=$(pwd)
go get github.com/eBay/fabio
cd ./demo/server
go build server.go./server -addr 172.17.0.1:5000 -name svc-a -prefix domain.com/foo -consul 127.0.0.1:8500
````127.0.0.1:8500 for consul web GUI/REST API
127.0.0.1:9998 for fabio web GUI
127.0.0.1:9999 for public facing HTTP