Public Repository

Last pushed: a year ago
Short Description
Nginx proxy to load balance traffic between registered server
Full Description

How to use this image

This image includes EXPOSE 7431 (the Proxy management port) 80 and 443 the proxy server port , so standard container linking will make it automatically available to the linked containers.

$ docker run -d -p 7431:7431 -p 80:80 --name ottproxy hlieuta/ott-proxy

Register server using curl:

curl -X POST -H "Content-Type: application/json" -H "Authorization: adminparty!"  -d '{
    "domain": "localhost",
    "address": {
        "host": "192.168.1.6",
        "port": 5984
    }
}' "http://localhost:7431/service"

To remove the service from load balancer using the following curl command:

curl -X DELETE -H "Content-Type: application/json" -H "Authorization: adminparty!"  -d '{
    "domain": "localhost",
    "address": {
        "host": "192.168.1.6",
        "port": 5984
    }
}' "http://localhost:7431/service"

Change management password

$ docker run -d -e SERVICE_SECRET=<yourpass> -p 7431:7431 -p 80:80 --name ottproxy hlieuta/ott-proxy
Docker Pull Command
Owner
hlieuta

Comments (0)