Browse Source

Make docker work (#653)

main
Clifford Beta 4 years ago
committed by GitHub
parent
commit
896fae150f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      docker-compose.yml
  2. 4
      src/PublicApi/appsettings.Docker.json
  3. 4
      src/Web/appsettings.Docker.json

11
docker-compose.yml

@ -6,9 +6,20 @@ services:
build: build:
context: . context: .
dockerfile: src/Web/Dockerfile dockerfile: src/Web/Dockerfile
depends_on:
- "sqlserver"
eshoppublicapi: eshoppublicapi:
image: ${DOCKER_REGISTRY-}eshoppublicapi image: ${DOCKER_REGISTRY-}eshoppublicapi
build: build:
context: . context: .
dockerfile: src/PublicApi/Dockerfile dockerfile: src/PublicApi/Dockerfile
depends_on:
- "sqlserver"
sqlserver:
image: mcr.microsoft.com/azure-sql-edge
ports:
- "1433:1433"
environment:
- SA_PASSWORD=@someThingComplicated1234
- ACCEPT_EULA=Y

4
src/PublicApi/appsettings.Docker.json

@ -1,7 +1,7 @@
{ {
"ConnectionStrings": { "ConnectionStrings": {
"CatalogConnection": "Server=(localdb)\\mssqllocaldb;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.CatalogDb;", "CatalogConnection": "Server=sqlserver,1433;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.CatalogDb;User Id=sa;Password=@someThingComplicated1234;Trusted_Connection=false;",
"IdentityConnection": "Server=(localdb)\\mssqllocaldb;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.Identity;" "IdentityConnection": "Server=sqlserver,1433;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.Identity;User Id=sa;Password=@someThingComplicated1234;Trusted_Connection=false;"
}, },
"baseUrls": { "baseUrls": {
"apiBase": "http://localhost:5200/api/", "apiBase": "http://localhost:5200/api/",

4
src/Web/appsettings.Docker.json

@ -1,7 +1,7 @@
{ {
"ConnectionStrings": { "ConnectionStrings": {
"CatalogConnection": "Server=(localdb)\\mssqllocaldb;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.CatalogDb;", "CatalogConnection": "Server=sqlserver,1433;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.CatalogDb;User Id=sa;Password=@someThingComplicated1234;Trusted_Connection=false;",
"IdentityConnection": "Server=(localdb)\\mssqllocaldb;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.Identity;" "IdentityConnection": "Server=sqlserver,1433;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.Identity;User Id=sa;Password=@someThingComplicated1234;Trusted_Connection=false;"
}, },
"baseUrls": { "baseUrls": {
"apiBase": "http://localhost:5200/api/", "apiBase": "http://localhost:5200/api/",

Loading…
Cancel
Save