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.
This commit is contained in:
Ronni Baslund
2026-05-30 08:08:50 +02:00
parent 0e1d2fb0d1
commit 22925599e7
@@ -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