diff --git a/chris_backend/config/settings/local.py b/chris_backend/config/settings/local.py index 296cd494..2cac4fa0 100755 --- a/chris_backend/config/settings/local.py +++ b/chris_backend/config/settings/local.py @@ -161,6 +161,9 @@ CORS_EXPOSE_HEADERS = ['Allow', 'Content-Type', 'Content-Length'] +# NATS settings +NATS_ADDRESS = 'nats://nats:4222' + # Celery settings #CELERY_BROKER_URL = 'amqp://guest:guest@localhost' diff --git a/chris_backend/config/settings/production.py b/chris_backend/config/settings/production.py index 94f04bcc..2e9da7f9 100755 --- a/chris_backend/config/settings/production.py +++ b/chris_backend/config/settings/production.py @@ -128,6 +128,11 @@ def get_secret(setting, secret_type=env): CORS_ALLOWED_ORIGINS = get_secret('DJANGO_CORS_ALLOWED_ORIGINS', env.list) +# NATS SETTINGS +# ------------------------------------------------------------------------------ +NATS_ADDRESS = get_secret('NATS_ADDRESS') + + # CELERY SETTINGS # ------------------------------------------------------------------------------ CELERY_BROKER_URL = get_secret('CELERY_BROKER_URL') diff --git a/docker-compose_just.yml b/docker-compose_just.yml index f46fd2a2..f3ea8c62 100755 --- a/docker-compose_just.yml +++ b/docker-compose_just.yml @@ -39,6 +39,8 @@ services: condition: service_healthy rabbitmq: condition: service_started + nats: + condition: service_started cube-nonroot-user-volume-fix: condition: service_completed_successfully networks: diff --git a/requirements/base.txt b/requirements/base.txt index e4131083..6014b949 100755 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -15,3 +15,4 @@ PyYAML==6.0.1 whitenoise[brotli]==6.5.0 PyJWT===2.8.0 channels[daphne]==4.1.0 +nats-py==2.9.0 \ No newline at end of file