Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Added ability to publish all browser container's ports (#641)
Browse files Browse the repository at this point in the history
Added ability to publish all browser container ports
  • Loading branch information
AfrikanovAndrey authored and vania-pooh committed Jan 9, 2019
1 parent 30e39a1 commit 586d015
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
21 changes: 11 additions & 10 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@ type State struct {

// Browser configuration
type Browser struct {
Image interface{} `json:"image"`
Port string `json:"port"`
Path string `json:"path"`
Tmpfs map[string]string `json:"tmpfs,omitempty"`
Volumes []string `json:"volumes,omitempty"`
Env []string `json:"env,omitempty"`
Hosts []string `json:"hosts,omitempty"`
ShmSize int64 `json:"shmSize,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Sysctl map[string]string `json:"sysctl,omitempty"`
Image interface{} `json:"image"`
Port string `json:"port"`
Path string `json:"path"`
Tmpfs map[string]string `json:"tmpfs,omitempty"`
Volumes []string `json:"volumes,omitempty"`
Env []string `json:"env,omitempty"`
Hosts []string `json:"hosts,omitempty"`
ShmSize int64 `json:"shmSize,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Sysctl map[string]string `json:"sysctl,omitempty"`
PublishAllPorts bool `json:"publishAllPorts,omitempty"`
}

// Versions configuration
Expand Down
1 change: 1 addition & 0 deletions service/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (d *Docker) StartWithCancel() (*StartedService, error) {
},
ExtraHosts: getExtraHosts(d.Service, d.Caps),
}
hostConfig.PublishAllPorts = d.Service.PublishAllPorts
if len(d.Caps.DNSServers) > 0 {
hostConfig.DNS = d.Caps.DNSServers
}
Expand Down

0 comments on commit 586d015

Please sign in to comment.