Merge pull request #1158 from chernjie/addhosts
Add extra_hosts to yml configuration --add-hosts
This commit is contained in:
commit
16f8106149
4 changed files with 111 additions and 1 deletions
17
docs/yml.md
17
docs/yml.md
|
|
@ -87,6 +87,23 @@ external_links:
|
|||
- project_db_1:postgresql
|
||||
```
|
||||
|
||||
### extra_hosts
|
||||
|
||||
Add hostname mappings. Use the same values as the docker client `--add-host` parameter.
|
||||
|
||||
```
|
||||
extra_hosts:
|
||||
- "somehost:162.242.195.82"
|
||||
- "otherhost: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 somehost
|
||||
50.31.209.229 otherhost
|
||||
```
|
||||
|
||||
### ports
|
||||
|
||||
Expose ports. Either specify both ports (`HOST:CONTAINER`), or just the container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue