fix: switch to dev settings for Docker services and improve env config
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 1m31s
CI/CD Pipeline / Code Quality Checks (push) Failing after 1m42s
CI/CD Pipeline / Build & Push Images (push) Successful in 2m4s
CI/CD Pipeline / Deploy (prod) (push) Has been skipped
CI/CD Pipeline / Deploy (dev) (push) Successful in 34s

This commit is contained in:
2026-02-10 20:10:38 +01:00
parent 6cb53fe92a
commit 49702096a0

View File

@@ -1,6 +1,5 @@
"""
Development settings - закрытый контур, без переменных окружения.
Docker на macOS - используется host.docker.internal.
"""
from .base import *
@@ -25,8 +24,8 @@ DATABASES = {
}
# Celery
CELERY_BROKER_URL = "redis://host.docker.internal:6379/0"
CELERY_RESULT_BACKEND = "redis://host.docker.internal:6379/0"
CELERY_BROKER_URL = "redis://redis:6379/0"
CELERY_RESULT_BACKEND = "redis://redis:6379/0"
CELERY_ACCEPT_CONTENT = ["json"]
CELERY_TASK_SERIALIZER = "json"
CELERY_RESULT_SERIALIZER = "json"
@@ -36,7 +35,7 @@ CELERY_TIMEZONE = "Europe/Moscow"
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://host.docker.internal:6379/1",
"LOCATION": "redis://redis:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
},