0
Je suis nouveau à docker. Voici ce que j'essaie de faire. Il y a un service Web dans le conteneur docker et je veux qu'il accède au serveur MSSQL existant.Docker conteneur se connecter à MSSQL
ici est la chaîne de connexion
version: '3'
services:
pricing.api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionString=data source=127.0.0.1,1433;Initial Catalog=db;Integrated Security=True;
ports:
- "11102:80"
Je reçois cette erreur
: '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: TCP Provider, error: 35 - An internal exception was caught)'
ce qui ne va pas ici? btw, je peux me connecter à 127.0.0.1, 1433 localement.