mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Null safety
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
12a15a9a4c
commit
fda09712c0
@ -92,6 +92,9 @@ func (e ecsLocalSimulation) Convert(ctx context.Context, project *types.Project)
|
|||||||
service.Networks["credentials_network"] = &types.ServiceNetworkConfig{
|
service.Networks["credentials_network"] = &types.ServiceNetworkConfig{
|
||||||
Ipv4Address: fmt.Sprintf("169.254.170.%d", i+3),
|
Ipv4Address: fmt.Sprintf("169.254.170.%d", i+3),
|
||||||
}
|
}
|
||||||
|
if service.DependsOn == nil {
|
||||||
|
service.DependsOn = types.DependsOnConfig{}
|
||||||
|
}
|
||||||
service.DependsOn["ecs-local-endpoints"] = types.ServiceDependency{
|
service.DependsOn["ecs-local-endpoints"] = types.ServiceDependency{
|
||||||
Condition: types.ServiceConditionStarted,
|
Condition: types.ServiceConditionStarted,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user