Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 3a22406

Browse files
Simon HookerFeng Honglin
authored andcommitted
Adding example for linked application configuration overrides (#135)
* Adding example for linked application configuration overrides Spent some time trying to get HAProxy to work as the docs didn't seem very clear over the application overrides, felt a simple example would help anyone else that hits this same issue. * Converting tab to space
1 parent e52edde commit 3a22406

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,24 @@ Settings here can overwrite the settings in HAProxy, which are only applied to t
255255

256256
Check [the HAProxy configuration manual](http://cbonte.github.io/haproxy-dconv/configuration-1.5.html) for more information on the above.
257257

258+
##### example of stackfile in Docker Cloud with settings in linked application:
259+
260+
web:
261+
image: 'dockercloud/hello-world:latest'
262+
target_num_containers: 2
263+
environment:
264+
- TCP_PORTS=443
265+
- EXCLUDE_PORTS=22
266+
lb:
267+
image: 'dockercloud/haproxy:latest'
268+
links:
269+
- web
270+
ports:
271+
- '80:80'
272+
roles:
273+
- global
274+
275+
258276
## Virtual host and virtual path
259277

260278
Both virtual host and virtual path can be specified in environment variable `VIRTUAL_HOST`, which is a set of comma separated urls with the format of `[scheme://]domain[:port][/path]`.
@@ -509,4 +527,4 @@ Legacy links:
509527
In most cases, `dockercloud/haproxy` will configure itself automatically when the linked services change, you don't need to reload it manually. But for some reason, if you have to do so, here is how:
510528

511529
* `docker exec <haproxy_id> /reload.sh`, if you are on the node where dockercloud/haproxy deploys
512-
* `docker-cloud exec <haproxy_uuid> /reload.sh`, if you use docker-cloud cli
530+
* `docker-cloud exec <haproxy_uuid> /reload.sh`, if you use docker-cloud cli

0 commit comments

Comments
 (0)