From 7235c49cb4241e53f4a80757d45ae22bd783b6b7 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 25 Aug 2026 03:19:58 +0000 Subject: [PATCH] Fix database connection: Correct environment variable names for Docker deployment - Changed MTG_PLATFORM_DATABASE_URL to DATABASE_URL to match settings.py - Removed MTG_MIRROR_DATABASE_URL (mirror uses primary database) - Reordered environment variables for clarity - Fixed hostname references to match docker-compose service names --- backend/docker-compose.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml index 494491b..decc28b 100644 --- a/backend/docker-compose.yml +++ b/backend/docker-compose.yml @@ -8,9 +8,9 @@ services: ports: - "8990:8000" environment: + - DATABASE_URL=postgresql+asyncpg://postgres:postgres@postgres_platform:5432/mtgo_platform - MTG_DATABASE_URL=postgresql+asyncpg://postgres:postgres@postgres_mtgdata:5432/mtgdata - - MTG_PLATFORM_DATABASE_URL=postgresql+asyncpg://postgres:postgres@postgres_platform:5432/mtgo_platform - - MTG_MIRROR_DATABASE_URL=postgresql+asyncpg://postgres:postgres@postgres_mirror:5432/mtgo_mirror + - REDIS_URL=redis://redis:6379/0 - MTG_BACKEND_URL=http://localhost:8990 - MTGJSON_DATA_DIR=/app/data - MTGJSON_URL=https://mtgjson.com/api/v5/ @@ -19,7 +19,6 @@ services: - MTG_INTERACTION_REVIEW_QUEUE=true - MTG_LOG_LEVEL=INFO - MTG_LOG_FORMAT=text - - REDIS_URL=redis://redis:6379/0 - SECRET_KEY=change-this-secret-key-in-production - JWT_SECRET_KEY=change-this-jwt-secret-key-in-production - DATA_DIR=/app/data