diff --git a/.github/workflows/build-deploy.yaml b/.github/workflows/build-deploy.yaml index 75ab41b11..54e12521b 100644 --- a/.github/workflows/build-deploy.yaml +++ b/.github/workflows/build-deploy.yaml @@ -12,7 +12,7 @@ jobs: username: ${{ secrets.DEV2_USERNAME }} password: ${{ secrets.DEV2_PASSWORD }} script: | - cd Shoonya-Backend + cd Anudesh-Backend git checkout develop2 git pull newgrp docker diff --git a/README.md b/README.md index e093b8b17..f90683de5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Shoonya Backend +# Anudesh Backend -Repository for Shoonya's backend. +Repository for Anudesh's backend. ## Pre-requisites @@ -111,8 +111,8 @@ os=$(uname) if [ "$os" = "Linux" ] || [ "$os" = "Darwin" ]; then -git clone https://github.com/AI4Bharat/Shoonya-Backend.git -cd Shoonya-Backend +git clone https://github.com/AI4Bharat/Anudesh-Backend.git +cd Anudesh-Backend git checkout dev git pull origin dev cp .env.example ./backend/.env @@ -146,18 +146,18 @@ Please install and run redis from https://redis.io/download/ on port 6379 before To run background tasks for project creation, we need to run the following command in the terminal. This has also been added into the `docker-compose.yml` file. ```bash -celery command - celery -A shoonya_backend.celery worker -l info -celery command - celery -A shoonya_backend.celery beat --loglevel=info +celery command - celery -A anudesh_backend.celery worker -l info +celery command - celery -A anudesh_backend.celery beat --loglevel=info ``` -You can set use the celery to local by modifying CELERY_BROKER_URL = "redis://localhost:6379/0" in ./backend/shoonya_backend/settings.py. +You can set use the celery to local by modifying CELERY_BROKER_URL = "redis://localhost:6379/0" in ./backend/anudesh_backend/settings.py. We can set the concurrency and autoscale in the process as well to manage the number of worker processes in the background. Read more [here](https://stackoverflow.com/a/72366865/9757174). The commands will be as follows ```bash -celery -A shoonya_backend.celery worker --concurrency=2 --loglevel=info -celery -A shoonya_backend.celery worker --autoscale=10,3 --loglevel=info +celery -A anudesh_backend.celery worker --concurrency=2 --loglevel=info +celery -A anudesh_backend.celery worker --autoscale=10,3 --loglevel=info ``` ### Running Linters diff --git a/backend/shoonya_backend/__init__.py b/backend/anudesh_backend/__init__.py similarity index 100% rename from backend/shoonya_backend/__init__.py rename to backend/anudesh_backend/__init__.py diff --git a/backend/shoonya_backend/asgi.py b/backend/anudesh_backend/asgi.py similarity index 74% rename from backend/shoonya_backend/asgi.py rename to backend/anudesh_backend/asgi.py index 8f9bb13c1..825e890d3 100644 --- a/backend/shoonya_backend/asgi.py +++ b/backend/anudesh_backend/asgi.py @@ -1,5 +1,5 @@ """ -ASGI config for shoonya_backend project. +ASGI config for anudesh_backend project. It exposes the ASGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ from django.core.asgi import get_asgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shoonya_backend.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "anudesh_backend.settings") application = get_asgi_application() diff --git a/backend/shoonya_backend/celery.py b/backend/anudesh_backend/celery.py similarity index 90% rename from backend/shoonya_backend/celery.py rename to backend/anudesh_backend/celery.py index 0f73a57fe..03dd96098 100644 --- a/backend/shoonya_backend/celery.py +++ b/backend/anudesh_backend/celery.py @@ -4,11 +4,11 @@ from celery import Celery -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shoonya_backend.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "anudesh_backend.settings") # Define celery app and settings celery_app = Celery( - "shoonya_backend", + "anudesh_backend", result_backend="django-db", accept_content=["application/json"], result_serializer="json", diff --git a/backend/shoonya_backend/logger.py b/backend/anudesh_backend/logger.py similarity index 100% rename from backend/shoonya_backend/logger.py rename to backend/anudesh_backend/logger.py diff --git a/backend/shoonya_backend/mixins.py b/backend/anudesh_backend/mixins.py similarity index 100% rename from backend/shoonya_backend/mixins.py rename to backend/anudesh_backend/mixins.py diff --git a/backend/shoonya_backend/pagination.py b/backend/anudesh_backend/pagination.py similarity index 100% rename from backend/shoonya_backend/pagination.py rename to backend/anudesh_backend/pagination.py diff --git a/backend/shoonya_backend/settings.py b/backend/anudesh_backend/settings.py similarity index 95% rename from backend/shoonya_backend/settings.py rename to backend/anudesh_backend/settings.py index 10b1e4efb..7bc2e7fff 100644 --- a/backend/shoonya_backend/settings.py +++ b/backend/anudesh_backend/settings.py @@ -1,5 +1,5 @@ """ -Django settings for shoonya_backend project. +Django settings for anudesh_backend project. Generated by 'django-admin startproject' using Django 4.0.1. @@ -38,9 +38,9 @@ ALLOWED_HOSTS = ["127.0.0.1", "localhost", "0.0.0.0", "*"] else: ALLOWED_HOSTS = [ - "shoonya.ai4bharat.org", + "anudesh.ai4bharat.org", "0.0.0.0", - "backend.shoonya.ai4bharat.org", + "backend.anudesh.ai4bharat.org", ] # Application definition @@ -90,7 +90,7 @@ AUTHENTICATION_BACKENDS = ("django.contrib.auth.backends.ModelBackend",) -ROOT_URLCONF = "shoonya_backend.urls" +ROOT_URLCONF = "anudesh_backend.urls" TEMPLATES = [ { @@ -108,7 +108,7 @@ }, ] -WSGI_APPLICATION = "shoonya_backend.wsgi.application" +WSGI_APPLICATION = "anudesh_backend.wsgi.application" # Database @@ -180,7 +180,7 @@ "rest_framework_simplejwt.authentication.JWTAuthentication", "rest_framework.authentication.SessionAuthentication", ), - "DEFAULT_PAGINATION_CLASS": "shoonya_backend.pagination.CustomPagination", + "DEFAULT_PAGINATION_CLASS": "anudesh_backend.pagination.CustomPagination", } @@ -193,8 +193,8 @@ EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = os.getenv("DEFAULT_FROM_EMAIL") -DOMAIN = "shoonya.ai4bharat.org" -SITE_NAME = "shoonya.ai4bharat.org" +DOMAIN = "anudesh.ai4bharat.org" +SITE_NAME = "anudesh.ai4bharat.org" DJOSER = { "PASSWORD_RESET_CONFIRM_URL": "#/forget-password/confirm/{uid}/{token}", @@ -224,7 +224,7 @@ # Define the list of formatters formatters = { "console": { - "()": "shoonya_backend.logger.ConsoleFormatter", + "()": "anudesh_backend.logger.ConsoleFormatter", "format": "({server_time}) {console_msg}", "style": "{", }, diff --git a/backend/shoonya_backend/urls.py b/backend/anudesh_backend/urls.py similarity index 96% rename from backend/shoonya_backend/urls.py rename to backend/anudesh_backend/urls.py index 9d9a27758..48e0febe9 100644 --- a/backend/shoonya_backend/urls.py +++ b/backend/anudesh_backend/urls.py @@ -24,9 +24,9 @@ def get_schema(self, request=None, public=False): SchemaView = get_schema_view( openapi.Info( - title="Shoonya API Docs", + title="Anudesh API Docs", default_version="v1", - description="API documentation for Shoonya Platform.", + description="API documentation for Anudesh Platform.", terms_of_service="https://www.google.com/policies/terms/", contact=openapi.Contact(email="contact@snippets.local"), license=openapi.License(name="BSD License"), diff --git a/backend/shoonya_backend/wsgi.py b/backend/anudesh_backend/wsgi.py similarity index 74% rename from backend/shoonya_backend/wsgi.py rename to backend/anudesh_backend/wsgi.py index aa99d0b11..52401014b 100644 --- a/backend/shoonya_backend/wsgi.py +++ b/backend/anudesh_backend/wsgi.py @@ -1,5 +1,5 @@ """ -WSGI config for shoonya_backend project. +WSGI config for anudesh_backend project. It exposes the WSGI callable as a module-level variable named ``application``. @@ -11,6 +11,6 @@ from django.core.wsgi import get_wsgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shoonya_backend.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "anudesh_backend.settings") application = get_wsgi_application() diff --git a/backend/deploy/setup-shoonya-script.sh b/backend/deploy/setup-anudesh-script.sh similarity index 90% rename from backend/deploy/setup-shoonya-script.sh rename to backend/deploy/setup-anudesh-script.sh index d9ee14abd..be846242c 100755 --- a/backend/deploy/setup-shoonya-script.sh +++ b/backend/deploy/setup-anudesh-script.sh @@ -2,8 +2,8 @@ os=$(uname) if [ "$os" = "Linux" ] || [ "$os" = "Darwin" ]; then -git clone https://github.com/AI4Bharat/Shoonya-Backend.git -cd Shoonya-Backend +git clone https://github.com/AI4Bharat/Anudesh-Backend.git +cd Anudesh-Backend git checkout dev git pull origin dev cp .env.example ./backend/.env diff --git a/backend/functions/tasks.py b/backend/functions/tasks.py index 1b5118b20..e55adb3ec 100644 --- a/backend/functions/tasks.py +++ b/backend/functions/tasks.py @@ -16,7 +16,7 @@ get_not_null_audio_transcription_duration, ) from projects.views import get_task_count_unassigned, ProjectViewSet -from shoonya_backend import settings +from anudesh_backend import settings from tasks.models import ( Annotation, ANNOTATOR_ANNOTATION, @@ -764,7 +764,7 @@ def schedule_mail_for_project_reports( + str(user.username) + f",\nYour project reports for the {type}" + f"{name}" - + " are ready.\n Thanks for contributing on Shoonya!" + + " are ready.\n Thanks for contributing on Anudesh!" + "\nProject Type: " + f"{project_type}" ) @@ -1487,7 +1487,7 @@ def schedule_mail_to_download_all_projects( + str(user.username) + f",\nYou can download all the projects by clicking on- " + f"{url}" - + " This link is active only for 1 hour.\n Thanks for contributing on Shoonya!" + + " This link is active only for 1 hour.\n Thanks for contributing on Anudesh!" ) email = EmailMessage( f"{user.username}" + "- Link to download all projects", diff --git a/backend/manage.py b/backend/manage.py index 44e65d177..b9e6b0cf5 100644 --- a/backend/manage.py +++ b/backend/manage.py @@ -6,7 +6,7 @@ def main(): """Run administrative tasks.""" - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shoonya_backend.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "anudesh_backend.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/backend/organizations/models.py b/backend/organizations/models.py index afa16929c..19c58a201 100644 --- a/backend/organizations/models.py +++ b/backend/organizations/models.py @@ -1,8 +1,8 @@ import string from django.db import models, transaction from users.models import * -from shoonya_backend.settings import AUTH_USER_MODEL -from shoonya_backend.mixins import DummyModelMixin +from anudesh_backend.settings import AUTH_USER_MODEL +from anudesh_backend.mixins import DummyModelMixin import secrets from django.core.mail import send_mail import os @@ -55,7 +55,7 @@ def create_organization( cls, created_by=None, title="Organization", - email_domain_name="organization@shoonya.org", + email_domain_name="organization@anudesh.org", ): with transaction.atomic(): org = Organization.objects.create( @@ -132,7 +132,7 @@ def create_invite(cls, organization=None, users=None): invite.save() send_mail( "Invitation to join Organization", - f"Hello! You are invited to {organization.title}. Your Invite link is: https://shoonya.ai4bharat.org/#/invite/{invite.invite_code}", + f"Hello! You are invited to {organization.title}. Your Invite link is: https://anudesh.ai4bharat.org/#/invite/{invite.invite_code}", settings.DEFAULT_FROM_EMAIL, [user.email], ) @@ -149,7 +149,7 @@ def re_invite(cls, users=None): invite = Invite.objects.get(user=user) send_mail( "Invitation to join Organization", - f"Hello! You are invited to {invite.organization.title}. Your Invite link is: https://shoonya.ai4bharat.org/#/invite/{invite.invite_code}", + f"Hello! You are invited to {invite.organization.title}. Your Invite link is: https://anudesh.ai4bharat.org/#/invite/{invite.invite_code}", settings.DEFAULT_FROM_EMAIL, [user.email], ) diff --git a/backend/organizations/tasks.py b/backend/organizations/tasks.py index 4efa4e8bb..dcd4436b2 100644 --- a/backend/organizations/tasks.py +++ b/backend/organizations/tasks.py @@ -487,7 +487,7 @@ def send_user_reports_mail_org( + str(user.username) + ",\nYour user payment reports for " + f"{organization.title}" - + " are ready.\n Thanks for contributing on Shoonya!" + + " are ready.\n Thanks for contributing on Anudesh!" + "\nProject Type: " + f"{project_type}" + "\nParticipation Types: " @@ -1195,7 +1195,7 @@ def send_project_analytics_mail_org( + str(user.username) + ",\nYour project analysis reports for " + f"{organization.title}" - + " are ready.\n Thanks for contributing on Shoonya!" + + " are ready.\n Thanks for contributing on Anudesh!" + "\nProject Type: " + f"{project_type}" ) @@ -1401,7 +1401,7 @@ def send_user_analytics_mail_org( + str(user.username) + ",\nYour user analysis reports for " + f"{organization.title}" - + " are ready.\n Thanks for contributing on Shoonya!" + + " are ready.\n Thanks for contributing on Anudesh!" + "\nProject Type: " + f"{project_type}" ) diff --git a/backend/projects/annotation_registry.py b/backend/projects/annotation_registry.py index a24b34b1d..60ac41acc 100644 --- a/backend/projects/annotation_registry.py +++ b/backend/projects/annotation_registry.py @@ -171,7 +171,7 @@ def convert_prediction_json_to_annotation_result( } if is_acoustic: text_dict["from_name"] = "verbatim_transcribed_json" - id = f"shoonya_{index}s{idx}s{generate_random_string(13-len(str(idx)))}" + id = f"anudesh_{index}s{idx}s{generate_random_string(13-len(str(idx)))}" label_dict["id"] = id text_dict["id"] = id label_dict["type"] = "labels" @@ -202,7 +202,7 @@ def convert_conversation_json_to_annotation_result(conversation_json, idx): result = [] for i in range(len(conversation_json)): for j in range(len(conversation_json[i]["sentences"])): - id = f"shoonya_{idx}s{i}s{j}s{generate_random_string(15-len(str(i))-len(str(j)))}" + id = f"anudesh_{idx}s{i}s{j}s{generate_random_string(15-len(str(i))-len(str(j)))}" text_dict = { "id": id, "type": "textarea", @@ -228,7 +228,7 @@ def draft_data_json_to_annotation_result(draft_data_json, project_type, pk=None) idx = 0 for field, value in draft_data_json.items(): try: - id = f"shoonya_{idx}g{generate_random_string(13-len(str(idx)))}" + id = f"anudesh_{idx}g{generate_random_string(13-len(str(idx)))}" field_dict = { "id": id, "origin": "manual", diff --git a/backend/projects/views.py b/backend/projects/views.py index d298b2e23..1617cf253 100644 --- a/backend/projects/views.py +++ b/backend/projects/views.py @@ -841,7 +841,7 @@ def convert_prediction_json_to_annotation_result(pk, proj_type): } if proj_type == "AcousticNormalisedTranscriptionEditing": text_dict["from_name"] = "verbatim_transcribed_json" - id = f"shoonya_{idx}s{generate_random_string(13 - len(str(idx)))}" + id = f"anudesh_{idx}s{generate_random_string(13 - len(str(idx)))}" label_dict["id"] = id text_dict["id"] = id label_dict["type"] = "labels" @@ -884,7 +884,7 @@ def convert_prediction_json_to_annotation_result(pk, proj_type): if "image_rotation" in ocr_prediction_json else 0 ) - custom_id = f"shoonya_{idx}s{generate_random_string(13 - len(str(idx)))}" + custom_id = f"anudesh_{idx}s{generate_random_string(13 - len(str(idx)))}" # creating values common_value = { "x": val["x"], diff --git a/backend/user_reports.py b/backend/user_reports.py index 41ef1f7a0..87109dddb 100644 --- a/backend/user_reports.py +++ b/backend/user_reports.py @@ -1,7 +1,7 @@ import os import django -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shoonya_backend.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "anudesh_backend.settings") django.setup() import schedule import requests @@ -215,7 +215,7 @@ def calculate_reports(): + str(user.username) + ",\n Your progress reports for " + f"{(datetime.now() - timedelta(days = 1) ):%d-%m-%Y}" - + " are ready.\n Thanks for contributing on Shoonya!" + + " are ready.\n Thanks for contributing on Anudesh!" ) if ( diff --git a/backend/users/models.py b/backend/users/models.py index eafae6029..ab141b999 100644 --- a/backend/users/models.py +++ b/backend/users/models.py @@ -21,7 +21,7 @@ from organizations.models import Organization from workspaces.models import Workspace -from shoonya_backend import settings +from anudesh_backend import settings from dotenv import load_dotenv from .utils import hash_upload @@ -261,7 +261,7 @@ def send_mail_to_change_password(self, email, key): link = f"{prefix}/#/forget-password/confirm/{key}/{sent_token}" try: send_mail( - "Reset password link for shoonya", + "Reset password link for anudesh", f"Hello! Please click on the following link to reset your password - {link}", settings.DEFAULT_FROM_EMAIL, [email], diff --git a/backend/users/tasks.py b/backend/users/tasks.py index b83601409..47704a9de 100644 --- a/backend/users/tasks.py +++ b/backend/users/tasks.py @@ -2,7 +2,7 @@ from django.conf import settings from django.core.mail import send_mail from celery.schedules import crontab -from shoonya_backend.celery import celery_app +from anudesh_backend.celery import celery_app from user_reports import calculate_reports diff --git a/backend/workspaces/migrations/0001_initial.py b/backend/workspaces/migrations/0001_initial.py index 54267cc7c..b6a20789c 100644 --- a/backend/workspaces/migrations/0001_initial.py +++ b/backend/workspaces/migrations/0001_initial.py @@ -3,7 +3,7 @@ from django.conf import settings from django.db import migrations, models import django.db.models.deletion -import shoonya_backend.mixins +import anudesh_backend.mixins class Migration(migrations.Migration): @@ -73,6 +73,6 @@ class Migration(migrations.Migration): options={ "ordering": ["pk"], }, - bases=(models.Model, shoonya_backend.mixins.DummyModelMixin), + bases=(models.Model, anudesh_backend.mixins.DummyModelMixin), ), ] diff --git a/backend/workspaces/models.py b/backend/workspaces/models.py index 4e4d8d54d..d007b695f 100644 --- a/backend/workspaces/models.py +++ b/backend/workspaces/models.py @@ -1,8 +1,8 @@ from django.db import models from organizations.models import Organization -from shoonya_backend.mixins import DummyModelMixin +from anudesh_backend.mixins import DummyModelMixin -from shoonya_backend import settings +from anudesh_backend import settings # Create your models here. diff --git a/backend/workspaces/tasks.py b/backend/workspaces/tasks.py index 0e8747d57..985fb8ead 100644 --- a/backend/workspaces/tasks.py +++ b/backend/workspaces/tasks.py @@ -485,7 +485,7 @@ def send_user_reports_mail_ws( + str(user.username) + ",\nYour user payment reports for the workspace " + f"{workspace.workspace_name}" - + " are ready.\n Thanks for contributing on Shoonya!" + + " are ready.\n Thanks for contributing on Anudesh!" + "\nProject Type: " + f"{project_type}" + "\nParticipation Types: " @@ -870,7 +870,7 @@ def send_project_analysis_reports_mail_ws( + str(user.username) + ",\nYour project analysis reports for the workspace " + f"{ws.workspace_name}" - + " are ready.\nThanks for contributing on Shoonya!" + + " are ready.\nThanks for contributing on Anudesh!" + "\nProject Type: " + f"{project_type}" ) @@ -2030,7 +2030,7 @@ def send_user_analysis_reports_mail_ws( + str(user.username) + ",\nYour user analysis reports for the workspace " + f"{ws.workspace_name}" - + " are ready.\n Thanks for contributing on Shoonya!" + + " are ready.\n Thanks for contributing on Anudesh!" + "\nProject Type: " + f"{project_type}" ) diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 927b515e7..4d61c2c56 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -38,7 +38,7 @@ services: web: build: ./backend - command: gunicorn --bind 0.0.0.0:8000 --workers 4 shoonya_backend.wsgi --timeout 300 + command: gunicorn --bind 0.0.0.0:8000 --workers 4 anudesh_backend.wsgi --timeout 300 volumes: - ./backend/:/usr/src/backend/ - static_volume:/usr/src/backend/static @@ -56,7 +56,7 @@ services: container_name: celery-default restart: always build: ./backend - command: celery -A shoonya_backend.celery worker -Q default --concurrency=2 --loglevel=info + command: celery -A anudesh_backend.celery worker -Q default --concurrency=2 --loglevel=info volumes: - ./backend/:/usr/src/backend/ depends_on: @@ -68,7 +68,7 @@ services: container_name: celery-low-priority restart: always build: ./backend - command: celery -A shoonya_backend.celery worker -Q functions --concurrency=2 --loglevel=info + command: celery -A anudesh_backend.celery worker -Q functions --concurrency=2 --loglevel=info volumes: - ./backend/:/usr/src/backend/ depends_on: @@ -78,7 +78,7 @@ services: # Celery beats - for scheduling daily e-mails - commented out for dev hostings. # celery-beat: # build: ./backend - # command: celery -A shoonya_backend.celery beat --loglevel=info + # command: celery -A anudesh_backend.celery beat --loglevel=info # volumes: # - ./backend/:/usr/src/backend # depends_on: @@ -89,7 +89,7 @@ services: container_name: celery-reports restart: always build: ./backend - command: celery -A shoonya_backend.celery worker -Q reports --concurrency=2 --loglevel=info + command: celery -A anudesh_backend.celery worker -Q reports --concurrency=2 --loglevel=info volumes: - ./backend/:/usr/src/backend/ depends_on: diff --git a/docker-compose-local.yml b/docker-compose-local.yml index 591200f74..43512589c 100644 --- a/docker-compose-local.yml +++ b/docker-compose-local.yml @@ -29,7 +29,7 @@ services: container_name: celery-default restart: always build: ./backend - command: celery -A shoonya_backend.celery worker -Q default --concurrency=2 --loglevel=info + command: celery -A anudesh_backend.celery worker -Q default --concurrency=2 --loglevel=info volumes: - ./backend/:/usr/src/backend/ depends_on: @@ -42,7 +42,7 @@ services: container_name: celery-low-priority restart: always build: ./backend - command: celery -A shoonya_backend.celery worker -Q functions --concurrency=2 --loglevel=info + command: celery -A anudesh_backend.celery worker -Q functions --concurrency=2 --loglevel=info volumes: - ./backend/:/usr/src/backend/ depends_on: @@ -53,7 +53,7 @@ services: # Celery beats - for scheduling daily e-mails celery-beat: build: ./backend - command: celery -A shoonya_backend.celery beat --loglevel=info + command: celery -A anudesh_backend.celery beat --loglevel=info volumes: - ./backend/:/usr/src/backend depends_on: diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index c3098e4bd..b39bf2788 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -38,7 +38,7 @@ services: web: build: ./backend - command: gunicorn --bind 0.0.0.0:8000 --workers 16 shoonya_backend.wsgi --timeout 300 + command: gunicorn --bind 0.0.0.0:8000 --workers 16 anudesh_backend.wsgi --timeout 300 volumes: - ./backend/:/usr/src/backend/ - static_volume:/usr/src/backend/static @@ -56,7 +56,7 @@ services: container_name: celery-default restart: always build: ./backend - command: celery -A shoonya_backend.celery worker -Q default --concurrency=2 --loglevel=info + command: celery -A anudesh_backend.celery worker -Q default --concurrency=2 --loglevel=info volumes: - ./backend/:/usr/src/backend/ depends_on: @@ -68,7 +68,7 @@ services: container_name: celery-low-priority restart: always build: ./backend - command: celery -A shoonya_backend.celery worker -Q functions --concurrency=2 --loglevel=info + command: celery -A anudesh_backend.celery worker -Q functions --concurrency=2 --loglevel=info volumes: - ./backend/:/usr/src/backend/ depends_on: @@ -78,7 +78,7 @@ services: # Celery beats - for scheduling daily e-mails celery-beat: build: ./backend - command: celery -A shoonya_backend.celery beat --loglevel=info + command: celery -A anudesh_backend.celery beat --loglevel=info volumes: - ./backend/:/usr/src/backend depends_on: @@ -89,7 +89,7 @@ services: container_name: celery-reports restart: always build: ./backend - command: celery -A shoonya_backend.celery worker -Q reports --concurrency=2 --loglevel=info + command: celery -A anudesh_backend.celery worker -Q reports --concurrency=2 --loglevel=info volumes: - ./backend/:/usr/src/backend/ depends_on: