refactor: update docker-compose files for improved configuration and add external volumes for MongoDB

This commit is contained in:
Jean Gatto
2025-03-16 09:38:03 -03:00
parent aa09f66188
commit e1a9d47177
5 changed files with 21 additions and 15 deletions
+10 -10
View File
@@ -10,13 +10,13 @@
*.dbproj merge=union *.dbproj merge=union
# Standard to msysgit # Standard to msysgit
*.doc diff=astextplain *.doc diff=astextplain
*.DOC diff=astextplain *.DOC diff=astextplain
*.docx diff=astextplain *.docx diff=astextplain
*.DOCX diff=astextplain *.DOCX diff=astextplain
*.dot diff=astextplain *.dot diff=astextplain
*.DOT diff=astextplain *.DOT diff=astextplain
*.pdf diff=astextplain *.pdf diff=astextplain
*.PDF diff=astextplain *.PDF diff=astextplain
*.rtf diff=astextplain *.rtf diff=astextplain
*.RTF diff=astextplain *.RTF diff=astextplain
+1 -2
View File
@@ -1,5 +1,4 @@
services: services:
shop-webapi: shop-webapi:
environment: environment:
- ASPNETCORE_ENVIRONMENT=Docker - ASPNETCORE_ENVIRONMENT=Docker
@@ -8,4 +7,4 @@ services:
- "80" - "80"
volumes: volumes:
- ~/.aspnet/https:/root/.aspnet/https:ro - ~/.aspnet/https:/root/.aspnet/https:ro
- ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro - ~/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
+8 -1
View File
@@ -37,7 +37,9 @@ services:
- "1433:1433" - "1433:1433"
environment: environment:
- ACCEPT_EULA=Y - ACCEPT_EULA=Y
- SA_PASSWORD=pMA63033n6tF - MSSQL_SA_PASSWORD=pMA63033n6tF
- MSSQL_PID=Developer
- MSSQL_COLLATION=Latin1_General_CI_AI
networks: networks:
- app-network - app-network
volumes: volumes:
@@ -67,7 +69,12 @@ services:
- "6379:6379" - "6379:6379"
networks: networks:
- app-network - app-network
volumes:
- "./data-mongo:/data/db"
volumes: volumes:
data-mssql: data-mssql:
external: true external: true
data-mongo:
external: true
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"sdk": { "sdk": {
"version": "9.0.103", "version": "9.0.201",
"rollForward": "latestMajor", "rollForward": "latestMajor",
"allowPrerelease": false "allowPrerelease": false
} }
+1 -1
View File
@@ -10,7 +10,7 @@
} }
}, },
"ConnectionStrings": { "ConnectionStrings": {
"SqlConnection": "Server=shop-sql-server;Integrated Security=true;Initial Catalog=ShopContext;User Id=sa;Password=pMA63033n6tF;Trusted_Connection=false;MultipleActiveResultSets=true;Encrypt=True;TrustServerCertificate=True;", "SqlConnection": "Server=shop-sql-server;Integrated Security=true;Initial Catalog=ShopContext;User Id=sa;Password=pMA63033n6tF;Trusted_Connection=False;TrustServerCertificate=True;",
"NoSqlConnection": "mongodb://shop-mongo-server", "NoSqlConnection": "mongodb://shop-mongo-server",
"CacheConnection": "shop-redis:6379,password=pMA63033n6tF,abortConnect=false" "CacheConnection": "shop-redis:6379,password=pMA63033n6tF,abortConnect=false"
}, },