Skip to content

strarsis/consul-fabio-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

consul-fabio-example

Example for fabio + consul + registrator using docker-compose (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-example

docker-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

About

Example for fabio + consul + registrator

Resources

License

Stars

Watchers

Forks

Packages

No packages published