Documentation ¶
Index ¶
- func URL(service string, port uint, useTLS bool) string
- type ComposeFile
- type DependsOn
- type Docker
- type DockerCompose
- func (dc *DockerCompose) ApplyMetadata(ctx context.Context) error
- func (dc *DockerCompose) ApplyMigrations(ctx context.Context) error
- func (dc *DockerCompose) ApplySeeds(ctx context.Context) error
- func (dc *DockerCompose) Logs(ctx context.Context, extraArgs ...string) error
- func (dc *DockerCompose) Start(ctx context.Context) error
- func (dc *DockerCompose) Stop(ctx context.Context, volumes bool) error
- func (dc *DockerCompose) Wrapper(ctx context.Context, extraArgs ...string) error
- func (dc *DockerCompose) WriteComposeFile(composeFile *ComposeFile) error
- type ExposePorts
- type HealthCheck
- type Ingress
- type Ingresses
- type Port
- type Rewrite
- type Service
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComposeFile ¶
type ComposeFile struct { Version string `yaml:"version"` Services map[string]*Service `yaml:"services"` Volumes map[string]struct{} `yaml:"volumes"` }
func ComposeFileFromConfig ¶
func ComposeFileFromConfig( cfg *model.ConfigConfig, projectName string, httpPort uint, useTLS bool, postgresPort uint, dataFolder string, nhostFolder string, dotNhostFolder string, rootFolder string, ports ExposePorts, branch string, dashboardVersion string, ) (*ComposeFile, error)
type DockerCompose ¶
type DockerCompose struct {
// contains filtered or unexported fields
}
func New ¶
func New(workingDir, filepath, projectName string) *DockerCompose
func (*DockerCompose) ApplyMetadata ¶
func (dc *DockerCompose) ApplyMetadata(ctx context.Context) error
func (*DockerCompose) ApplyMigrations ¶
func (dc *DockerCompose) ApplyMigrations(ctx context.Context) error
func (*DockerCompose) ApplySeeds ¶
func (dc *DockerCompose) ApplySeeds(ctx context.Context) error
func (*DockerCompose) Logs ¶
func (dc *DockerCompose) Logs(ctx context.Context, extraArgs ...string) error
func (*DockerCompose) Wrapper ¶
func (dc *DockerCompose) Wrapper(ctx context.Context, extraArgs ...string) error
func (*DockerCompose) WriteComposeFile ¶
func (dc *DockerCompose) WriteComposeFile(composeFile *ComposeFile) error
type ExposePorts ¶ added in v1.5.3
type HealthCheck ¶
type Service ¶
type Service struct { Image string `yaml:"image"` DependsOn map[string]DependsOn `yaml:"depends_on,omitempty"` EntryPoint []string `yaml:"entrypoint,omitempty"` Command []string `yaml:"command,omitempty"` Environment map[string]string `yaml:"environment,omitempty"` ExtraHosts []string `yaml:"extra_hosts"` HealthCheck *HealthCheck `yaml:"healthcheck,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` Ports []Port `yaml:"ports,omitempty"` Restart string `yaml:"restart"` Volumes []Volume `yaml:"volumes,omitempty"` WorkingDir *string `yaml:"working_dir,omitempty"` }
Click to show internal directories.
Click to hide internal directories.