i launched different types of services in single node and try to balance that services using haproxy in docker- cloud but it is failed it only configured and balanced only once service how to over come this problem
for the haproxy instance, create a link to each service
lb: image: 'dockercloud/haproxy:latest' links: - api - application - dashboard ports: - '80:80' restart: on-failure roles: - global tags: - front_end
the service need not publish, just expose a port and define VIRTUAL_HOST, VIRTUAL_PATH, etc … eg.
api: image: 'johndoe/api:1.0.0' environment: - 'VIRTUAL_HOST=api.*' expose: - '3001' links: - memcached - mongo - redis restart: on-failure
Hi Peter Pritchard,
in my application requirement is each service (like rabbitmq, redis, mongodb, and tomcat )is load balanced in haproxy and finally get tomcat application port 80 only
hi @cheftestn, you might want to take a look at my project: https://github.com/madwire/dockercloud-nginx-proxy
It might work better for your needs
Does dockercloud-nginx-proxy support all configurations, ssl support etc? I read up quickly on the docs, but it looks limited to VIRTUAL_HOST and FORCE_SSL (using self-signed cert).
@peterlauri sure, you’re right. it’s a niche setup and it’s more like an heroku style router
Personally I prefer nginx, but I love Docker Cloud, so I guess HAproxy will be ok for now
And it works quite well I must saw, after playing around for 24 hours, I got it all up and running. I have been fiddling around with other docker oriented approaches, like Convox etc, but Docker Cloud just makes things very clean…