Fix Docker deployment: Update settings.py defaults and Dockerfile for proper environment variable handling

- Updated settings.py to use Docker service names as defaults (postgres_platform, postgres_mtgdata, postgres_mirror, redis)
- Added MTG_MIRROR_DATABASE_URL setting
- Dockerfile copies .env file into container for pydantic-settings
- Entry point script handles dependency checking and migrations before app startup
This commit is contained in:
2026-08-25 03:56:55 +00:00
parent 7235c49cb4
commit 30b6a3d803
2 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ COPY --chown=appuser:appuser alembic/ ./alembic/
COPY --chown=appuser:appuser scripts/ ./scripts/
RUN chmod +x /app/scripts/*.py /app/scripts/docker-entrypoint.sh
# Copy environment example
# Copy environment files
COPY --chown=appuser:appuser .env ./.env
COPY --chown=appuser:appuser .env.example ./.env.example
COPY --chown=appuser:appuser pyproject.toml ./