From 3764d3e2ab3f12025697baad813abacd8254147c Mon Sep 17 00:00:00 2001 From: Kyle Pope Date: Mon, 23 Feb 2026 00:15:24 +0800 Subject: [PATCH] Move TZ from docker-compose to .env, document in .env.example Co-Authored-By: Claude Opus 4.6 --- .env.example | 3 +++ docker-compose.yaml | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 1392eef..310f615 100644 --- a/.env.example +++ b/.env.example @@ -7,5 +7,8 @@ POSTGRES_DB=umbra DATABASE_URL=postgresql+asyncpg://umbra:changeme_in_production@db:5432/umbra SECRET_KEY=change-this-to-a-random-secret-key-in-production +# Timezone (applied to backend + db containers via env_file) +TZ=Australia/Perth + # Integrations OPENWEATHERMAP_API_KEY=your-openweathermap-api-key diff --git a/docker-compose.yaml b/docker-compose.yaml index e1aab25..23491da 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,8 +3,6 @@ services: image: postgres:16-alpine restart: unless-stopped env_file: .env - environment: - - TZ=Australia/Perth volumes: - postgres_data:/var/lib/postgresql/data healthcheck: @@ -19,8 +17,6 @@ services: ports: - "8000:8000" env_file: .env - environment: - - TZ=Australia/Perth depends_on: db: condition: service_healthy