diff --git a/.env b/.env index a7c723d..422998e 100644 --- a/.env +++ b/.env @@ -2,4 +2,5 @@ MSSQL_SA_PASSWORD=YOUR_STRONG_!Passw0rd MSSQL_PORT=1433 REDIS_PASSWORD=YOUR_STRONG_!Passw0rd REDIS_PORT=6379 -MONGO_PORT=27017 \ No newline at end of file +MONGO_PORT=27017 +ASPNETCORE_ENVIRONMENT=Development \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2a58aff..3595e1f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -63,7 +63,7 @@ services: env_file: - ./.env environment: - ASPNETCORE_ENVIRONMENT: Development + ASPNETCORE_ENVIRONMENT: ${ASPNETCORE_ENVIRONMENT} ConnectionStrings__SqlConnection: "Server=shop-sql-server,1433;Database=ShopContext;User Id=sa;Password=${MSSQL_SA_PASSWORD};TrustServerCertificate=True;" ConnectionStrings__NoSqlConnection: "mongodb://shop-mongo-server:27017" ConnectionStrings__CacheConnection: "shop-redis-server:6379,password=${REDIS_PASSWORD},abortConnect=false"