Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compose ¶
type Compose struct {
Version string
Services map[string]interface{}
Networks map[string]interface{}
Volumes map[string]interface{}
}
Compose is abstraction for docker-compose.yml
type DockerComposer ¶
type DockerComposer interface {
DockerCompose() Compose
}
DockerComposer responsible to compose docker
type Network ¶
type Network struct {
Driver string `yaml:"driver,omitempty"`
}
Network in docker-compose.yaml
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.