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:
|
Volumes:
|
||||||
'/dev': {}
|
'/dev': {}
|
||||||
Env: _.map app.env, (v, k) -> k + '=' + v
|
Env: _.map app.env, (v, k) -> k + '=' + v
|
||||||
|
ExposedPorts:
|
||||||
|
'80/tcp': {}
|
||||||
|
'443/tcp': {}
|
||||||
)
|
)
|
||||||
.then (container) ->
|
.then (container) ->
|
||||||
console.log('Starting container:', app.imageId)
|
console.log('Starting container:', app.imageId)
|
||||||
container.startAsync(
|
container.startAsync(
|
||||||
Privileged: true
|
Privileged: true
|
||||||
|
PortBindings:
|
||||||
|
'80/tcp': [ HostPort: '80' ]
|
||||||
|
'443/tcp': [ HostPort: '443' ]
|
||||||
Binds: [
|
Binds: [
|
||||||
'/dev:/dev'
|
'/dev:/dev'
|
||||||
'/var/run/docker.sock:/run/docker.sock'
|
'/var/run/docker.sock:/run/docker.sock'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user