[ad_1]
I have a problem, when I try to run my DockerFile
version: '3'
services:
weatherapi:
build: UserManagementAPI/
ports:
- "44377:443"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443
- ASPNETCORE_Kestrel__Certificates__Default__Password=password
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- SymmetricSecurityKey=superSecretKey
- Kestrel:Certificates:Development:Password=password
- Issuer=https://localhost:44377
- HostGetSignedUrl=https://localhost:3000/get-signed
- DatabaseConnection=Server=(localdb)\\mssqllocaldb;Database=usersdbstore;Trusted_Connection=True;
- CertificatePassword=housefox146
- Audience=http://localhost:8080
volumes:
- ~/.aspnet/https:/https:ro
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 – Connection string is not valid)
As I understand it, there are problems with connecting to the database, but where exactly I do not understand.
I tried it. But it did not help me
Can not connect to sql server from docker supported asp.net core project
[ad_2]