mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02:00
Merge pull request #1417 from gtardif/build_labels
Adding support for compose file attributes
This commit is contained in:
commit
4402ecf84e
@ -189,6 +189,7 @@ func (s *composeService) toBuildOptions(service types.ServiceConfig, contextPath
|
|||||||
Target: service.Build.Target,
|
Target: service.Build.Target,
|
||||||
Exports: []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
|
Exports: []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
|
||||||
Platforms: plats,
|
Platforms: plats,
|
||||||
|
Labels: service.Labels,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,6 +289,12 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
|
|||||||
Resources: resources,
|
Resources: resources,
|
||||||
VolumeDriver: service.VolumeDriver,
|
VolumeDriver: service.VolumeDriver,
|
||||||
VolumesFrom: service.VolumesFrom,
|
VolumesFrom: service.VolumesFrom,
|
||||||
|
DNS: service.DNS,
|
||||||
|
DNSSearch: service.DNSSearch,
|
||||||
|
DNSOptions: service.DNSOpts,
|
||||||
|
ExtraHosts: service.ExtraHosts,
|
||||||
|
SecurityOpt: service.SecurityOpt,
|
||||||
|
UsernsMode: container.UsernsMode(service.UserNSMode),
|
||||||
}
|
}
|
||||||
|
|
||||||
networkConfig := buildDefaultNetworkConfig(service, networkMode, getContainerName(p.Name, service, number))
|
networkConfig := buildDefaultNetworkConfig(service, networkMode, getContainerName(p.Name, service, number))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user