Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 1128ab8

Browse files
committed
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 <[email protected]>
1 parent 813ae99 commit 1128ab8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ecs/compatibility.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ var compatibleComposeAttributes = []string{
8484
"services.healthcheck.timeout",
8585
"services.image",
8686
"services.init",
87+
"services.labels",
8788
"services.logging",
8889
"services.logging.options",
8990
"services.networks",

ecs/convert.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func (b *ecsAPIService) createTaskDefinition(project *types.Project, service typ
115115
DependsOnProp: dependencies,
116116
DnsSearchDomains: service.DNSSearch,
117117
DnsServers: service.DNS,
118+
DockerLabels: service.Labels,
118119
DockerSecurityOptions: service.SecurityOpt,
119120
EntryPoint: service.Entrypoint,
120121
Environment: pairs,

0 commit comments

Comments
 (0)