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
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:
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user