fix ports
This commit is contained in:
parent
3bcf2ccdf8
commit
f203e4ac10
@ -8,5 +8,7 @@ RUN dotnet publish -c Release -o /app
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
EXPOSE 80
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
ENTRYPOINT ["dotnet", "EvoCalculator.Core.dll"]
|
||||
@ -1,11 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace EvoCalculator.Core
|
||||
{
|
||||
@ -18,7 +12,10 @@ namespace EvoCalculator.Core
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); }).ConfigureWebHostDefaults(
|
||||
webBuilder => { webBuilder.UseStartup<Startup>(); });
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseStartup<Startup>();
|
||||
webBuilder.UseKestrel(options => { options.ListenAnyIP(5000); });
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -1,30 +0,0 @@
|
||||
version: '3.1'
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
services:
|
||||
calculatorcore:
|
||||
image: evocalculator.core
|
||||
container_name: calculator-core
|
||||
restart: unless-stopped
|
||||
|
||||
# depends_on:
|
||||
# - joomladb
|
||||
|
||||
# ports:
|
||||
# - 8080:80
|
||||
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.backend=calculator-core"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.http.routers.calculator-core.rule=Host(`calculator-core.evoleasing.ru`)"
|
||||
- "traefik.http.routers.calculator-core.entrypoints=web-secure"
|
||||
- "traefik.http.routers.calculator-core.tls.certresolver=le"
|
||||
|
||||
# volumes:
|
||||
# - /snap/docker/docker_volumes/joomla/html:/var/www/html
|
||||
networks:
|
||||
- web
|
||||
Loading…
x
Reference in New Issue
Block a user