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'
|
||||
},
|
||||
Name: 'testService',
|
||||
networks: [testNetwork]
|
||||
networks: [testNetwork],
|
||||
networkAlias: 'testService'
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -32,7 +32,7 @@ export class DockerService {
|
||||
for (const network of serviceCreationDescriptor.networks) {
|
||||
networkArray.push({
|
||||
Target: network.Name,
|
||||
Aliases: []
|
||||
Aliases: [serviceCreationDescriptor.networkAlias]
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -6,4 +6,5 @@ export interface IServiceCreationDescriptor {
|
||||
Image: string;
|
||||
Labels: interfaces.TLabels;
|
||||
networks: DockerNetwork[];
|
||||
networkAlias: string;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user