Documentation
¶
Index ¶
- Variables
- type ComposeFn
- type Composer
- type DockerCmd
- func (m *DockerCmd) CmdCompose(c *typgo.BuildSys) *cli.Command
- func (m *DockerCmd) CmdDown(c *typgo.BuildSys) *cli.Command
- func (m *DockerCmd) CmdUp(c *typgo.BuildSys) *cli.Command
- func (m *DockerCmd) CmdWipe(c *typgo.BuildSys) *cli.Command
- func (m *DockerCmd) Command(sys *typgo.BuildSys) *cli.Command
- func (m *DockerCmd) Execute(c *typgo.Context) error
- type Network
- type Networks
- type Recipe
- type Service
- type Services
- type Volumes
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DockerComposeYml is yml file DockerComposeYml = "docker-compose.yml" // Version of docker compose Version = "3" )
Functions ¶
This section is empty.
Types ¶
type Composer ¶ added in v0.8.15
Composer responsible to compose docker
func NewCompose ¶ added in v0.8.36
NewCompose return new instance of composer
type DockerCmd ¶ added in v0.8.36
type DockerCmd struct {
Composers []Composer
}
DockerCmd for docker
func (*DockerCmd) CmdCompose ¶ added in v0.8.36
CmdCompose command compose
type Network ¶
type Network struct {
Driver string `yaml:"driver,omitempty"`
}
Network in docker-compose.yaml
type Networks ¶ added in v0.8.15
type Networks map[string]interface{}
Networks descriptor in docker-compose.yml
type Service ¶
type Service struct {
Image string `yaml:"image,omitempty"`
Command string `yaml:"command,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
Volumes []string `yaml:"volumes,omitempty"`
Ports []string `yaml:"ports,omitempty"`
Networks []string `yaml:"networks,omitempty"`
Restart string `yaml:"restart,omitempty"`
}
Service in docker-compose.yaml
Click to show internal directories.
Click to hide internal directories.