I just need to set a host to my haproxy container, For example myhost.com.
But I don't know how to set that variable, I tried as below but it doesn't work.
thanks.
version: '2'services:app:image: myuser/myimageports:- "8080"lb:image: dockercloud/haproxy:latestlinks:- appenvironment:- VIRTUAL_HOST=web.org appvolumes:- /var/run/docker.sock:/var/run/docker.sockports:- 80:80- 1936:1936
I just need to set a host to my haproxy container, For example myhost.com. But I don't know how to set that variable, I tried as below but it doesn't work. thanks.
version: '2'
services:
app:
image: myuser/myimage
ports:
- "8080"
lb:
image: dockercloud/haproxy:latest
links:
- app
environment:
- VIRTUAL_HOST=web.org app
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 1936:1936