added the extra_hosts option to the yml configuration which exposes the --add-host flag from the docker client

Signed-off-by: Sam Wing <sampwing@gmail.com>
This commit is contained in:
Sam Wing 2015-01-15 12:58:17 -08:00 committed by CJ
commit fb81c37ca6
4 changed files with 47 additions and 0 deletions

View file

@ -87,6 +87,23 @@ external_links:
- project_db_1:postgresql
```
### extra_hosts
Add hostname mappings. Use the same values as the docker client `--add-hosts` parameter.
```
extra_hosts:
- docker: 162.242.195.82
- fig: 50.31.209.229
```
An entry with the ip address and hostname will be created in `/etc/hosts` inside containers for this service, e.g:
```
162.242.195.82 docker
50.31.209.229 fig
```
### ports
Expose ports. Either specify both ports (`HOST:CONTAINER`), or just the container