Accept an external_links list in the service configuration dictionary to create links to containers outside of the project
Signed-off-by: Jason Bernardino Alonso <jalonso@luminoso.com> Signed-off-by: Mauricio de Abreu Antunes <mauricio.abreua@gmail.com>
This commit is contained in:
parent
70c3676084
commit
4257707244
3 changed files with 42 additions and 2 deletions
12
docs/yml.md
12
docs/yml.md
|
|
@ -58,6 +58,18 @@ An entry with the alias' name will be created in `/etc/hosts` inside containers
|
|||
|
||||
Environment variables will also be created - see the [environment variable reference](env.html) for details.
|
||||
|
||||
### external_links
|
||||
|
||||
Link to containers started outside this `fig.yml` or even outside of fig, especially for containers that provide shared or common services.
|
||||
`external_links` follow semantics similar to `links` when specifying both the container name and the link alias (`CONTAINER:ALIAS`).
|
||||
|
||||
```
|
||||
external_links:
|
||||
- redis_1
|
||||
- project_db_1:mysql
|
||||
- project_db_1:postgresql
|
||||
```
|
||||
|
||||
### ports
|
||||
|
||||
Expose ports. Either specify both ports (`HOST:CONTAINER`), or just the container port (a random host port will be chosen).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue