Support 'expose' config option, like docker's --expose
Exposes ports to linked services without publishing them to the world.
This commit is contained in:
parent
6a3d1d06b5
commit
2d98071e55
3 changed files with 15 additions and 3 deletions
|
|
@ -44,6 +44,12 @@ ports:
|
|||
- "8000:8000"
|
||||
- "49100:22"
|
||||
|
||||
-- Expose ports without publishing them to the host machine - they'll only be
|
||||
-- accessible to linked services. Only the internal port can be specified.
|
||||
expose:
|
||||
- "3000"
|
||||
- "8000"
|
||||
|
||||
-- Map volumes from the host machine (HOST:CONTAINER).
|
||||
volumes:
|
||||
- cache/:/tmp/cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue