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

Latest commit

 

History

History
34 lines (22 loc) · 1.37 KB

multiple-projects.md

File metadata and controls

34 lines (22 loc) · 1.37 KB

Working with multiple projects

Using vhost-proxy (boot2docker-vagrant)

boot2docker-vagrant has a built-in vhost-proxy container that adds support for running multiple projects on the same IP:port. The container binds to 192.168.10.10:80 (the default box IP address) and routes web requests based on the Host header.

See boot2docker-vagrant docs for more information and configuration instructions.

Without vhost-proxy (Mac, Windows, Linux)

Follow the setup instructions for each project making sure that ports used by containers accross all projects do not collide (e.g. two containers cannot use port 80 at the same time).

This requires a slight modification of the docker-compose.yml. Edit the ports key for each container that does port mapping in docker-compose.yml. You can either map unique ports for each container or use dedicated IPs.

Unique ports

ports:
  - "8080:80"
  - "8443:443"

Dedicated IP

ports:
  - "192.168.10.11:80:80"
  - "192.168.10.11:443:443"

For Mac and Windows see boot2docker-vagrant/vagrant.yml for instructions on enabling additional IPs for the Boot2docker VM.