Add support for passing in docker labels.

This add to `services.labels` to the compatibility file and maps the labels to the ECS provided DockerLabels.

Signed-off-by: Jonathan Woodell <jwoodell@snapattack.com>
This commit is contained in:
Jonathan Woodell 2021-11-19 05:26:29 -06:00
Родитель 813ae99af5
Коммит 1128ab8e9a
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -84,6 +84,7 @@ var compatibleComposeAttributes = []string{
"services.healthcheck.timeout",
"services.image",
"services.init",
"services.labels",
"services.logging",
"services.logging.options",
"services.networks",

Просмотреть файл

@ -115,6 +115,7 @@ func (b *ecsAPIService) createTaskDefinition(project *types.Project, service typ
DependsOnProp: dependencies,
DnsSearchDomains: service.DNSSearch,
DnsServers: service.DNS,
DockerLabels: service.Labels,
DockerSecurityOptions: service.SecurityOpt,
EntryPoint: service.Entrypoint,
Environment: pairs,