Support 'expose' config option, like docker's --expose

Exposes ports to linked services without publishing them to the world.
This commit is contained in:
Aanand Prasad 2014-03-04 17:59:42 +00:00
commit 2d98071e55
3 changed files with 15 additions and 3 deletions

View file

@ -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