From 0b0b3bfadc5095dc1124e02cb32e957db58f6309 Mon Sep 17 00:00:00 2001 From: DJP Date: Tue, 12 May 2026 22:41:30 -0400 Subject: [PATCH] docker-compose: mount Box secret at /run/secrets/box-config.json Short-form `- box-config` mounted the file at /run/secrets/box-config (no extension), but BOX_CONFIG_FILE everywhere references the .json suffix. Switch to long-form `target:` so the mount path matches the configured env value and isBoxConfigured() reads the right file. Co-Authored-By: Claude Opus 4.7 (1M context) --- docker-compose.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index f7c61a9..627d1f9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -81,7 +81,12 @@ services: volumes: - uploads_data:/data/uploads secrets: - - box-config + # Long-form so the secret lands at `/run/secrets/box-config.json` — + # matching BOX_CONFIG_FILE above. The default short-form would mount + # at `/run/secrets/box-config` (no extension), causing isBoxConfigured() + # to read from the wrong path. + - source: box-config + target: box-config.json depends_on: db: condition: service_healthy