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

Commit

Permalink
Merge pull request #110 from aandryashin/master
Browse files Browse the repository at this point in the history
Add array of volumes in docker volume spec (e.g. ). Fix #108.
  • Loading branch information
vania-pooh authored Jun 6, 2017
2 parents b1806ab + f9907e6 commit e85fd64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ 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"`
Image interface{} `json:"image"`
Port string `json:"port"`
Path string `json:"path"`
Tmpfs map[string]string `json:"tmpfs,omitempty"`
Volumes []string `json:"volumes,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 @@ -67,6 +67,7 @@ func (d *Docker) StartWithCancel() (*url.URL, string, string, func(), error) {
ExposedPorts: exposedPorts,
},
&container.HostConfig{
Binds: d.Service.Volumes,
AutoRemove: true,
PortBindings: portBindings,
LogConfig: *d.LogConfig,
Expand Down

0 comments on commit e85fd64

Please sign in to comment.