From 99849ad84c047390cee300841157feb6f210c48d Mon Sep 17 00:00:00 2001 From: Page Date: Sun, 27 Apr 2014 23:24:31 +0100 Subject: [PATCH] Publish tcp ports 80 and 443 of the container. Conflicts: src/application.coffee Conflicts: src/application.coffee --- src/application.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/application.coffee b/src/application.coffee index 5e4550a6..2bcb1f99 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -69,11 +69,17 @@ exports.start = start = (app) -> Volumes: '/dev': {} Env: _.map app.env, (v, k) -> k + '=' + v + ExposedPorts: + '80/tcp': {} + '443/tcp': {} ) .then (container) -> console.log('Starting container:', app.imageId) container.startAsync( Privileged: true + PortBindings: + '80/tcp': [ HostPort: '80' ] + '443/tcp': [ HostPort: '443' ] Binds: [ '/dev:/dev' '/var/run/docker.sock:/run/docker.sock'