mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-18 17:00:25 +00:00
Publish tcp ports 80 and 443 of the container.
Conflicts: src/application.coffee Conflicts: src/application.coffee
This commit is contained in:
parent
38481f524d
commit
99849ad84c
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user