diff --git a/.gitignore b/.gitignore index b37fe27..900ccc7 100644 --- a/.gitignore +++ b/.gitignore @@ -362,4 +362,5 @@ src/EventHub.Web.Host/Logs/* src/EventHub.IdentityServer/Logs/* src/EventHub.HttpApi.Host/Logs/* src/EventHub.HttpApi.HostWithIds/Logs/* -src/EventHub.DbMigrator/Logs/* \ No newline at end of file +src/EventHub.DbMigrator/Logs/* +.tye/ \ No newline at end of file diff --git a/dev-cert/create-certificate.ps1 b/dev-cert/create-certificate.ps1 new file mode 100644 index 0000000..8f4e38a --- /dev/null +++ b/dev-cert/create-certificate.ps1 @@ -0,0 +1,3 @@ +Remove-Item * -Include *.pfx +dotnet dev-certs https -v -ep localhost.pfx -p e8202f07-66e5-4619-be07-72ba76fde97f +cd.. \ No newline at end of file diff --git a/tye.yaml b/tye.yaml new file mode 100644 index 0000000..23383cb --- /dev/null +++ b/tye.yaml @@ -0,0 +1,39 @@ +name: myprojectname +services: +- name: redis + image: redis:6.0.10-alpine + bindings: + - port: 6379 + connectionString: "${host}:${port}" +- name: identityserver + project: src/EventHub.IdentityServer/EventHub.IdentityServer.csproj + bindings: + - protocol: https + port: 44313 + env: + - Kestrel__Certificates__Default__Path=../../dev-cert/localhost.pfx + - Kestrel__Certificates__Default__Password=e8202f07-66e5-4619-be07-72ba76fde97f +- name: api + project: src/EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj + bindings: + - protocol: https + port: 44362 + env: + - Kestrel__Certificates__Default__Path=../../dev-cert/localhost.pfx + - Kestrel__Certificates__Default__Password=e8202f07-66e5-4619-be07-72ba76fde97f +- name: web + project: src/EventHub.Web/EventHub.Web.csproj + bindings: + - protocol: https + port: 44308 + env: + - Kestrel__Certificates__Default__Path=../../dev-cert/localhost.pfx + - Kestrel__Certificates__Default__Password=e8202f07-66e5-4619-be07-72ba76fde97f +- name: web-admin + project: src/EventHub.Web.Admin/EventHub.Web.Admin.csproj + bindings: + - protocol: https + port: 44307 + env: + - Kestrel__Certificates__Default__Path=../../dev-cert/localhost.pfx + - Kestrel__Certificates__Default__Password=e8202f07-66e5-4619-be07-72ba76fde97f