i am not able to understand the database flow can anyone explain me how the database is created or how the data flow will go.?
Jut to clarify some of the points mentioned by @CESARDELATORRE
Hope this makes it clear!
@eiximenis Great explanation.
If I am running the WebSpa with vs 2017 by F5 option . Docker running in the background.
How can I connect the SQL SERVER to the tcp ip defined in the appsettings json ?
"ConnectionString": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word",
Anyone connected to the db's of the project?
The connection string used is the one in the docker-compose.override:
https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/docker-compose.override.yml
So, this one:
ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
"sql.data" is the internal service name that is resolved within the Docker host.
If you want to connect from the outside (i.e. SQL Server Manager), you should be able to do it using localhost and the published post, as it is configured in the same file:
sql.data:
environment:
- SA_PASSWORD=Pass@word
- ACCEPT_EULA=Y
ports:
- "5433:1433"
So, localhost,5433
Closing this issue.
Most helpful comment
The connection string used is the one in the docker-compose.override:
https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/docker-compose.override.yml
So, this one:
ConnectionString=${ESHOP_AZURE_CATALOG_DB:-Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word}
"sql.data" is the internal service name that is resolved within the Docker host.
If you want to connect from the outside (i.e. SQL Server Manager), you should be able to do it using localhost and the published post, as it is configured in the same file:
sql.data:
environment:
- SA_PASSWORD=Pass@word
- ACCEPT_EULA=Y
ports:
- "5433:1433"
So, localhost,5433
Closing this issue.