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

Commit 33d0234

Browse files
committed
update README
1 parent 778d78f commit 33d0234

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Usage
1111

1212
Launch your application container that exposes port 80:
1313

14-
docker run -d --name web1 tutum/hello-world
15-
docker run -d --name web2 tutum/hello-world
14+
docker run -d --name web1 dockercloud/hello-world
15+
docker run -d --name web2 dockercloud/hello-world
1616

1717
Then, run `dockercloud/haproxy` linking it to the target containers:
1818

@@ -233,12 +233,12 @@ Use case scenarios
233233

234234
Use the following:
235235

236-
docker run -d --expose 80 --name webapp tutum/hello-world
236+
docker run -d --expose 80 --name webapp dockercloud/hello-world
237237
docker run -d --link webapp:webapp -p 80:80 dockercloud/haproxy
238238

239239
#### My webapp container exposes port 80 and database ports 8083/8086, and I want the proxy to listen in port 80 without my database ports added to haproxy
240240

241-
docker run -d -e EXCLUDE_PORTS=8803,8806 --expose 80 --expose 8033 --expose 8086 --name webapp tutum/hello-world
241+
docker run -d -e EXCLUDE_PORTS=8803,8806 --expose 80 --expose 8033 --expose 8086 --name webapp dockercloud/hello-world
242242
docker run -d --link webapp:webapp -p 80:80 dockercloud/haproxy
243243

244244
#### My webapp container exposes port 8080(or any other port), and I want the proxy to listen in port 8080
@@ -252,7 +252,7 @@ Use the following:
252252

253253
Use the following:
254254

255-
docker run -d -e SSL_CERT="YOUR_CERT_TEXT" --name webapp tutum/hello-world
255+
docker run -d -e SSL_CERT="YOUR_CERT_TEXT" --name webapp dockercloud/hello-world
256256
docker run -d --link webapp:webapp -p 443:443 -p 80:80 dockercloud/haproxy
257257

258258
or
@@ -267,47 +267,47 @@ The certificate in `YOUR_CERT_TEXT` is a combination of private key followed by
267267

268268
Use the following:
269269

270-
docker run -d -e FORCE_SSL=yes -e SSL_CERT="YOUR_CERT_TEXT" --name webapp tutum/hello-world
270+
docker run -d -e FORCE_SSL=yes -e SSL_CERT="YOUR_CERT_TEXT" --name webapp dockercloud/hello-world
271271
docker run -d --link webapp:webapp -p 443:443 dockercloud/haproxy
272272

273273
#### I want to set up virtual host routing by domain
274274

275275
Virtual hosts can be configured by the proxy reading linked container environment variables (`VIRTUAL_HOST`). Here is an example:
276276

277-
docker run -d -e VIRTUAL_HOST="www.webapp1.com, www.webapp1.org" --name webapp1 tutum/hello-world
277+
docker run -d -e VIRTUAL_HOST="www.webapp1.com, www.webapp1.org" --name webapp1 dockercloud/hello-world
278278
docker run -d -e VIRTUAL_HOST=www.webapp2.com --name webapp2 your/webapp2
279279
docker run -d --link webapp1:webapp1 --link webapp2:webapp2 -p 80:80 dockercloud/haproxy
280280

281281
In the example above, when you access `http://www.webapp1.com` or `http://www.webapp1.org`, it will show the service running in container `webapp1`, and `http://www.webapp2.com` will go to container `webapp2`.
282282

283283
If you use the following:
284284

285-
docker run -d -e VIRTUAL_HOST=www.webapp1.com --name webapp1 tutum/hello-world
286-
docker run -d -e VIRTUAL_HOST=www.webapp2.com --name webapp2-1 tutum/hello-world
287-
docker run -d -e VIRTUAL_HOST=www.webapp2.com --name webapp2-2 tutum/hello-world
285+
docker run -d -e VIRTUAL_HOST=www.webapp1.com --name webapp1 dockercloud/hello-world
286+
docker run -d -e VIRTUAL_HOST=www.webapp2.com --name webapp2-1 dockercloud/hello-world
287+
docker run -d -e VIRTUAL_HOST=www.webapp2.com --name webapp2-2 dockercloud/hello-world
288288
docker run -d --link webapp1:webapp1 --link webapp2-1:webapp2-1 --link webapp2-2:webapp2-2 -p 80:80 dockercloud/haproxy
289289

290290
When you access `http://www.webapp1.com`, it will show the service running in container `webapp1`, and `http://www.webapp2.com` will go to both containers `webapp2-1` and `webapp2-2` using round robin (or whatever is configured in `BALANCE`).
291291

292292
#### I want all my `*.node.io` domains point to my service
293293

294-
docker run -d -e VIRTUAL_HOST="*.node.io" --name webapp tutum/hello-world
294+
docker run -d -e VIRTUAL_HOST="*.node.io" --name webapp dockercloud/hello-world
295295
docker run -d --link webapp:webapp -p 80:80 dockercloud/haproxy
296296

297297
#### I want `web.example.com` go to one service and `*.example.com` go to another service
298298

299-
docker run -d -e VIRTUAL_HOST="web.example.com" -e VIRTUAL_HOST_WEIGHT=1 --name webapp tutum/hello-world
300-
docker run -d -e VIRTUAL_HOST="*.example.com" -e VIRTUAL_HOST_WEIGHT=0 --name app tutum/hello-world
299+
docker run -d -e VIRTUAL_HOST="web.example.com" -e VIRTUAL_HOST_WEIGHT=1 --name webapp dockercloud/hello-world
300+
docker run -d -e VIRTUAL_HOST="*.example.com" -e VIRTUAL_HOST_WEIGHT=0 --name app dockercloud/hello-world
301301
docker run -d --link webapp:webapp --link app:app -p 80:80 dockercloud/haproxy
302302

303303
#### I want all the requests to path `/path` point to my service
304304

305-
docker run -d -e VIRTUAL_HOST="*/path, */path/*" --name webapp tutum/hello-world
305+
docker run -d -e VIRTUAL_HOST="*/path, */path/*" --name webapp dockercloud/hello-world
306306
docker run -d --link webapp:webapp -p 80:80 dockercloud/haproxy
307307

308308
#### I want all the static html request point to my service
309309

310-
docker run -d -e VIRTUAL_HOST="*/*.htm, */*.html" --name webapp tutum/hello-world
310+
docker run -d -e VIRTUAL_HOST="*/*.htm, */*.html" --name webapp dockercloud/hello-world
311311
docker run -d --link webapp:webapp -p 80:80 dockercloud/haproxy
312312

313313
#### I want to see stats of HAProxy
@@ -318,8 +318,8 @@ When you access `http://www.webapp1.com`, it will show the service running in co
318318

319319
Replace `<subdomain>` and `<port>` with your the values matching your papertrailapp account:
320320

321-
docker run -d --name web1 tutum/hello-world
322-
docker run -d --name web2 tutum/hello-world
321+
docker run -d --name web1 dockercloud/hello-world
322+
docker run -d --name web2 dockercloud/hello-world
323323
docker run -it --env RSYSLOG_DESTINATION='<subdomain>.papertrailapp.com:<port>' -p 80:80 --link web1:web1 --link web2:web2 dockercloud/haproxy
324324

325325
Topologies using virtual hosts

0 commit comments

Comments
 (0)