diff --git a/Docker/docker-compose.yml b/Docker/docker-compose.yml index 9f160e1..3e50457 100644 --- a/Docker/docker-compose.yml +++ b/Docker/docker-compose.yml @@ -19,12 +19,13 @@ services: environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: ${POSTGRESPASS} + POSTGRES_DATABASE: visa ports: - - "5432:5432" + - "5433:5432" networks: - app-network healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres -d auth"] + test: ["CMD-SHELL", "pg_isready -U postgres -d visa"] interval: 5s timeout: 5s retries: 10 diff --git a/Dockerfile b/Dockerfile index 9358b67..48fd865 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,5 @@ RUN dotnet publish "SchengenVisaApi/SchengenVisaApi.csproj" -c Release -o /app/p FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime WORKDIR /app COPY --from=build /app/publish ./ -ENV ASPNETCORE_URLS=http://*:5000 EXPOSE 5000 ENTRYPOINT ["dotnet", "SchengenVisaApi.dll"] diff --git a/SchengenVisaApi/Properties/launchSettings.json b/SchengenVisaApi/Properties/launchSettings.json index cb0562b..b8496a7 100644 --- a/SchengenVisaApi/Properties/launchSettings.json +++ b/SchengenVisaApi/Properties/launchSettings.json @@ -14,7 +14,7 @@ "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "http://localhost:5022", + "applicationUrl": "http://localhost:5000", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } @@ -24,7 +24,7 @@ "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "https://localhost:7168;http://localhost:5022", + "applicationUrl": "http://localhost:5000", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/SchengenVisaApi/appsettings.json b/SchengenVisaApi/appsettings.json index e559df4..cb97b4d 100644 --- a/SchengenVisaApi/appsettings.json +++ b/SchengenVisaApi/appsettings.json @@ -7,7 +7,7 @@ }, "AllowedHosts": "*", - "urls": "http://localhost:5003;https://localhost:7168", + "urls": "http://*:5000", "ConnectionStrings": { "connectionString": "Host=localhost;Port=5432;Database=visa;Username=postgres;Password=Qwerty123456!"