fix(core): update
This commit is contained in:
parent
314cb692ac
commit
de54db33ad
@ -73,7 +73,8 @@ tap.test('should create a service', async () => {
|
|||||||
'testlabel': 'hi'
|
'testlabel': 'hi'
|
||||||
},
|
},
|
||||||
Name: 'testService',
|
Name: 'testService',
|
||||||
networks: [testNetwork]
|
networks: [testNetwork],
|
||||||
|
networkAlias: 'testService'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ export class DockerService {
|
|||||||
for (const network of serviceCreationDescriptor.networks) {
|
for (const network of serviceCreationDescriptor.networks) {
|
||||||
networkArray.push({
|
networkArray.push({
|
||||||
Target: network.Name,
|
Target: network.Name,
|
||||||
Aliases: []
|
Aliases: [serviceCreationDescriptor.networkAlias]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,4 +6,5 @@ export interface IServiceCreationDescriptor {
|
|||||||
Image: string;
|
Image: string;
|
||||||
Labels: interfaces.TLabels;
|
Labels: interfaces.TLabels;
|
||||||
networks: DockerNetwork[];
|
networks: DockerNetwork[];
|
||||||
|
networkAlias: string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user