Publish tcp ports 80 and 443 of the container.

Conflicts:
	src/application.coffee

Conflicts:
	src/application.coffee
This commit is contained in:
Page 2014-04-27 23:24:31 +01:00 committed by Pablo Carranza Vélez
parent 38481f524d
commit 99849ad84c

View File

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