поправки косяков, ну типа
	
		
			
	
		
	
	
		
	
		
			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: |     environment: | ||||||
|       POSTGRES_USER: postgres |       POSTGRES_USER: postgres | ||||||
|       POSTGRES_PASSWORD: ${POSTGRESPASS} |       POSTGRES_PASSWORD: ${POSTGRESPASS} | ||||||
|  |       POSTGRES_DATABASE: visa | ||||||
|     ports: |     ports: | ||||||
|       - "5432:5432" |       - "5433:5432" | ||||||
|     networks: |     networks: | ||||||
|       - app-network |       - app-network | ||||||
|     healthcheck: |     healthcheck: | ||||||
|       test: ["CMD-SHELL", "pg_isready -U postgres -d auth"] |       test: ["CMD-SHELL", "pg_isready -U postgres -d visa"] | ||||||
|       interval: 5s |       interval: 5s | ||||||
|       timeout: 5s |       timeout: 5s | ||||||
|       retries: 10 |       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 | FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime | ||||||
| WORKDIR /app | WORKDIR /app | ||||||
| COPY --from=build /app/publish ./ | COPY --from=build /app/publish ./ | ||||||
| ENV ASPNETCORE_URLS=http://*:5000 |  | ||||||
| EXPOSE 5000 | EXPOSE 5000 | ||||||
| ENTRYPOINT ["dotnet", "SchengenVisaApi.dll"] | ENTRYPOINT ["dotnet", "SchengenVisaApi.dll"] | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ | |||||||
|       "dotnetRunMessages": true, |       "dotnetRunMessages": true, | ||||||
|       "launchBrowser": true, |       "launchBrowser": true, | ||||||
|       "launchUrl": "swagger", |       "launchUrl": "swagger", | ||||||
|       "applicationUrl": "http://localhost:5022", |       "applicationUrl": "http://localhost:5000", | ||||||
|       "environmentVariables": { |       "environmentVariables": { | ||||||
|         "ASPNETCORE_ENVIRONMENT": "Development" |         "ASPNETCORE_ENVIRONMENT": "Development" | ||||||
|       } |       } | ||||||
| @@ -24,7 +24,7 @@ | |||||||
|       "dotnetRunMessages": true, |       "dotnetRunMessages": true, | ||||||
|       "launchBrowser": true, |       "launchBrowser": true, | ||||||
|       "launchUrl": "swagger", |       "launchUrl": "swagger", | ||||||
|       "applicationUrl": "https://localhost:7168;http://localhost:5022", |       "applicationUrl": "http://localhost:5000", | ||||||
|       "environmentVariables": { |       "environmentVariables": { | ||||||
|         "ASPNETCORE_ENVIRONMENT": "Development" |         "ASPNETCORE_ENVIRONMENT": "Development" | ||||||
|       } |       } | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|   }, |   }, | ||||||
|   "AllowedHosts": "*", |   "AllowedHosts": "*", | ||||||
|  |  | ||||||
|   "urls": "http://localhost:5003;https://localhost:7168", |   "urls": "http://*:5000", | ||||||
|  |  | ||||||
|   "ConnectionStrings": { |   "ConnectionStrings": { | ||||||
|     "connectionString": "Host=localhost;Port=5432;Database=visa;Username=postgres;Password=Qwerty123456!" |     "connectionString": "Host=localhost;Port=5432;Database=visa;Username=postgres;Password=Qwerty123456!" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user