2024-06-02 06:03:47 +00:00
|
|
|
package service_definition
|
2024-06-02 05:21:25 +00:00
|
|
|
|
2024-09-27 03:29:52 +00:00
|
|
|
type BuildImage struct {
|
|
|
|
Path string `yaml:"path"`
|
|
|
|
TagPrefix string `yaml:"tag"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type BuildConfiguration struct {
|
|
|
|
Images []BuildImage
|
|
|
|
}
|
|
|
|
|
2024-06-02 05:21:25 +00:00
|
|
|
type VolumeDefinition struct {
|
|
|
|
Name string `yaml:"name"`
|
|
|
|
}
|
|
|
|
|
2024-06-03 03:49:37 +00:00
|
|
|
type PortMapping struct {
|
|
|
|
Host string `yaml:"host"`
|
|
|
|
Container string `yaml:"container"`
|
|
|
|
Type string `yaml:"type"`
|
|
|
|
}
|
|
|
|
|
2024-06-02 05:21:25 +00:00
|
|
|
type VolumeConfiguration struct {
|
|
|
|
Name string `yaml:"name"`
|
|
|
|
Container string `yaml:"container"`
|
|
|
|
Host string `yaml:"host"`
|
2024-06-09 04:23:53 +00:00
|
|
|
ReadOnly bool `yaml:"readonly"`
|
2024-06-02 05:21:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ContainerDefinition struct {
|
2024-11-09 23:08:32 +00:00
|
|
|
Name string `yaml:"name"`
|
|
|
|
Image string `yaml:"image"`
|
|
|
|
Volumes []VolumeConfiguration `yaml:"volumes"`
|
|
|
|
EnvFile string `yaml:"env-file"`
|
|
|
|
Network string `yaml:"network"`
|
|
|
|
PIDNamespace string `yaml:"pid-namespace"`
|
|
|
|
ExtraArgs []string `yaml:"extra-args"`
|
2024-06-02 05:21:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ServiceDefinition struct {
|
|
|
|
Name string `yaml:"name"`
|
2024-09-27 03:29:52 +00:00
|
|
|
Build BuildConfiguration `yaml:"build"`
|
2024-06-02 05:21:25 +00:00
|
|
|
Volumes []VolumeDefinition `yaml:"volumes"`
|
|
|
|
Containers []ContainerDefinition `yaml:"containers"`
|
2024-06-03 03:49:37 +00:00
|
|
|
Ports []PortMapping `yaml:"ports"`
|
2024-06-02 05:21:25 +00:00
|
|
|
}
|