compose: set TZ=America/New_York on terra-view + sfm services
Default display timezone for server logs + PDF report rendering on both terra-view and sfm services. Override per-deployment in this file for non-US-East installations. DB columns are always UTC regardless — only affects what operators see in logs / PDFs / any text-rendered timestamp. Modal display uses browser TZ via toLocaleString (no server config needed). Pairs with seismo-relay commit 6381dcb (tz env var support in the Dockerfile + report_pdf UTC→local conversion). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,10 @@ services:
|
||||
- ENVIRONMENT=production
|
||||
- SLMM_BASE_URL=http://host.docker.internal:8100
|
||||
- SFM_BASE_URL=http://sfm:8200
|
||||
# Display timezone for server logs + any text-rendered timestamps.
|
||||
# DB columns are stored UTC regardless; this only affects what
|
||||
# operators see. Override here for non-US-East deployments.
|
||||
- TZ=America/New_York
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- slmm
|
||||
@@ -59,6 +63,10 @@ services:
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
- PORT=8200
|
||||
# Display timezone — affects server log timestamps, the PDF
|
||||
# report renderer's UTC→local conversions, and matplotlib's
|
||||
# datetime axes. DB columns (created_at etc.) are always UTC.
|
||||
- TZ=America/New_York
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8200/health"]
|
||||
|
||||
Reference in New Issue
Block a user