Skip to content

Commit

Permalink
Skip service discovery for private routing too
Browse files Browse the repository at this point in the history
  • Loading branch information
austindrenski committed May 7, 2024
1 parent ba996e1 commit f3d0da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecs/cloudformation.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func (b *ecsAPIService) createTargetGroup(project *types.Project, service types.
}

func (b *ecsAPIService) createServiceRegistries(service types.ServiceConfig, template *cloudformation.Template) []ecs.Service_ServiceRegistry {
if len(service.Ports) == 0 {
if _, ok := service.Labels["traefik.enable"]; !ok && len(service.Ports) == 0 {
return []ecs.Service_ServiceRegistry{}
}

Expand Down

0 comments on commit f3d0da7

Please sign in to comment.