Commit Graph

13 Commits

Author SHA1 Message Date
61848774d2 fix: Correct media permissions via docker exec after deploy
- Remove 2>/dev/null || true from chown/chmod in entrypoint.sh
- Add write test for media directory in entrypoint.sh
- Add Step 8 in deploy script: fix permissions via docker exec
- This ensures media files remain accessible after auto-deploy

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 00:09:50 +03:00
9b4b1277ee feat: Add Docker infrastructure for multi-tenant Django application with services for database, caching, and task processing. 2026-01-17 18:27:57 +03:00
bcda94f09a Перемещена папка docker в myproject и защита секретов
- Все docker-файлы теперь в myproject/docker/
- Добавлен docker/.env.docker в gitignore для защиты секретов
- Сохранена обратная совместимость с существующими настройками
- Структура проекта стала более организованной
2026-01-04 00:31:02 +03:00
483f150e7a feat(static): improve static files handling and permissions in Docker
- Add script to set correct permissions on static files after collectstatic
- Introduce collectstatic command in entrypoint with permission fixing
- Add WhiteNoise middleware for efficient static file serving without DB access
- Configure WhiteNoise static files storage backend in settings
- Set STATIC_ROOT path properly for Docker container environment
- Add fallback static files serving in Django urls for production without nginx
- Enhance inventory_detail.html scripts to log errors if JS files or components fail to load
- Add whitenoise package to requirements for static file serving support
2025-12-22 20:45:52 +03:00
812ecb53e6 Fix media file storage path and permissions
- Fix MEDIA_ROOT path to match Docker volume mount (/app/myproject/media)
- Update docker-compose.yml volume mounts to match MEDIA_ROOT
- Add setup_directories() function in entrypoint.sh to create media directories with proper permissions
- Add logging to TenantAwareFileSystemStorage for debugging
- Fix is_returned flag logic improvements (from previous work)
2025-12-21 16:54:44 +03:00
a55be3095b Fix Docker setup: add gunicorn, fix permissions, update docker-compose and entrypoint, add deployment instructions 2025-12-21 15:05:58 +03:00
f03e750030 feat: Add Docker entrypoint script for application orchestration and implement cleanup for stuck photo processing tasks with improved error handling. 2025-12-13 22:42:58 +03:00
87079deca1 Исправлены команды запуска Celery в Docker (worker и beat) для корректного автоопределения приложения 2025-12-13 01:31:33 +03:00
f2549d7789 Исправлена команда запуска Celery Beat в Docker для корректной загрузки приложения 2025-12-13 01:26:09 +03:00
6470fb7588 Fix volume mounts for media and celere worker paths 2025-12-12 20:48:16 +03:00
6023496a7d Fix Celery startup and ImageService temp handling 2025-12-12 20:23:00 +03:00
4cbc5c07b9 feat: Implement Dockerized multi-tenant Django application with initial setup for database, migrations, and superuser creation. 2025-12-12 18:04:36 +03:00
0fe888e405 Добавлен entrypoint.sh с правами на выполнение для деплоя 2025-12-08 17:00:53 +03:00