Skip to content

Generic Nginx router using consul as discovery service for Docker containers.

Notifications You must be signed in to change notification settings

espinraf/approuter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APP ROUTER

This is a router to direct HTTP traffic to applications in Docker containers using Nginx and Consul as discovery service

How to run


docker build --rm -t redpill/approuter-data  .

docker-compose up

Register a service

http://localhost:8500/v1/agent/service/register

header: Content-Type :  application/json

{
  "ID": "api",
  "Name": "api",
  "Tags": [
    "primary",
    "v1"
  ],
  "Address": "172.20.0.3",
  "Port": 8081,
  "Meta": {
    "mule_version": "3.0"
  },
  "EnableTagOverride": false
}

About

Generic Nginx router using consul as discovery service for Docker containers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published