From 22925599e769769a853046f242015b500e055942 Mon Sep 17 00:00:00 2001 From: Ronni Baslund Date: Sat, 30 May 2026 08:08:50 +0200 Subject: [PATCH] chore(compose): wire Stripe env into platform-api Pass STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET and BILLING_STRIPE_ENABLED into the platform-api service from the gitignored .env. Defaults keep billing dark (derived data) when unset. --- infrastructure/docker-compose/docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infrastructure/docker-compose/docker-compose.yml b/infrastructure/docker-compose/docker-compose.yml index c47e264..0dd603b 100644 --- a/infrastructure/docker-compose/docker-compose.yml +++ b/infrastructure/docker-compose/docker-compose.yml @@ -573,6 +573,13 @@ services: AUDIT_COLD_SECRET_KEY: ${MINIO_ROOT_PASSWORD} AUDIT_HOT_RETENTION_DAYS: "90" ARCHIVE_ENABLED: "false" + # Stripe billing. Dark-launched: when BILLING_STRIPE_ENABLED != "true" or + # the secret is empty, billing runs on derived data (Subscription + Price + + # marginPct). Values come from the gitignored root .env. Webhook secret is + # only needed once the signature-verified /stripe/webhook path goes live. + STRIPE_SECRET_KEY: ${STRIPE_SECRET_KEY:-} + STRIPE_WEBHOOK_SECRET: ${STRIPE_WEBHOOK_SECRET:-} + BILLING_STRIPE_ENABLED: ${BILLING_STRIPE_ENABLED:-false} volumes: - ../../services/platform-api:/app - platform_api_node_modules:/app/node_modules