поправки косяков, ну типа
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user