From 8b57aee672cb94a842e09efd5617e6b81a7bdd1d Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Mon, 16 Feb 2026 13:36:40 -0500 Subject: [PATCH] Set ASPNETCORE_ENVIRONMENT to Development in docker-compose and pass through encryption key The Docker container defaults to Production when no environment is set, which triggers the new startup secret validation. Default to Development for docker-compose (local dev) and expose BANKSYNC_ENCRYPTION_KEY env var so production deployments can override it. Co-Authored-By: Claude Opus 4.6 --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 49b7c75..c5df832 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,10 +22,12 @@ services: dockerfile: src/Purrse.Api/Dockerfile container_name: purrse-api environment: + - ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development} - ConnectionStrings__DefaultConnection=Host=db;Port=5432;Database=purrse;Username=purrse;Password=${DB_PASSWORD:-purrse_dev};Ssl Mode=Prefer;Trust Server Certificate=true - Jwt__Key=${JWT_KEY:-PurrseDefaultSecretKey_ChangeInProduction_AtLeast32Chars!} - Jwt__Issuer=Purrse - Jwt__Audience=Purrse + - BankSync__EncryptionKey=${BANKSYNC_ENCRYPTION_KEY:-CHANGE_ME_32_CHAR_KEY_FOR_AES256!} - Cors__Origins__0=http://localhost:9080 - Plugins__Path=/app/plugins - Imports__WatchPath=/app/imports