David Fowler
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
samples/multi-project/tye.yaml
-
src/Microsoft.Tye.Core/ApplicationFactory.cs
-
src/Microsoft.Tye.Hosting/ProxyService.cs
|
|
|
@ -17,4 +17,3 @@ services: |
|
|
|
image: rabbitmq:3-management |
|
|
|
bindings: |
|
|
|
- port: 5672 |
|
|
|
protocol: rabbitmq |
|
|
|
|
|
|
|
@ -93,7 +93,8 @@ namespace Microsoft.Tye |
|
|
|
Protocol = configBinding.Protocol, |
|
|
|
}; |
|
|
|
|
|
|
|
if (binding.ConnectionString == null) |
|
|
|
// Assume HTTP for projects only (containers may be different)
|
|
|
|
if (binding.ConnectionString == null && configService.Project != null) |
|
|
|
{ |
|
|
|
binding.Protocol ??= "http"; |
|
|
|
} |
|
|
|
|
|
|
|
@ -69,7 +69,7 @@ namespace Microsoft.Tye.Hosting |
|
|
|
binding.Port = GetNextPort(); |
|
|
|
} |
|
|
|
|
|
|
|
if (binding.Protocol == "http" || binding.Protocol == null) |
|
|
|
if (binding.Protocol == "http" || (binding.Protocol == null && service.ServiceType == Model.ServiceType.Project)) |
|
|
|
{ |
|
|
|
binding.ContainerPort = 80; |
|
|
|
} |
|
|
|
|