{"id":13411536,"url":"https://github.com/mrbrazzi/my_django_celery_stack","last_synced_at":"2025-03-14T17:30:54.945Z","repository":{"id":41918904,"uuid":"242193542","full_name":"mrbrazzi/my_django_celery_stack","owner":"mrbrazzi","description":"Stack of containers with Celery application based in Django, Celery Worker, Celery Beat and RabbitMQ","archived":false,"fork":false,"pushed_at":"2022-07-15T20:31:37.000Z","size":18,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-20T03:20:21.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrbrazzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-21T17:23:21.000Z","updated_at":"2021-10-14T06:32:38.000Z","dependencies_parsed_at":"2022-08-11T21:50:34.515Z","dependency_job_id":null,"html_url":"https://github.com/mrbrazzi/my_django_celery_stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbrazzi%2Fmy_django_celery_stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbrazzi%2Fmy_django_celery_stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbrazzi%2Fmy_django_celery_stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrbrazzi%2Fmy_django_celery_stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrbrazzi","download_url":"https://codeload.github.com/mrbrazzi/my_django_celery_stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243618633,"owners_count":20320269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:01:14.329Z","updated_at":"2025-03-14T17:30:54.657Z","avatar_url":"https://github.com/mrbrazzi.png","language":"Python","funding_links":[],"categories":["Web Development"],"sub_categories":["Python"],"readme":"# My Stack\nImplementation of Producer-Consumer using Docker containers with Django App, Celery Worker \u0026 Beat and RabbitMQ.\n\n## How to setup initial configurations\n\n### Setup database configuration\nMake a copy of .env-sample \n```bash\ncp .env-sample .env\n```\n\nSetup database configuration. Update values for:\n```ini\nDB_NAME=\u003cdb_name\u003e\n```\n\n### Setup Celery configuration\nIn file **.env**, created before when *[setup database configuration](#setup-database-configuration)*; update values for:\n```ini\n# RABBITMQ\nBROKER_USER=\u003cbroker_user\u003e\nBROKER_PASSWORD=\u003cbroker_user_password\u003e\nBROKER_HOST=\u003cbroker_server_ip_or_hostname|localhost\u003e\nBROKER_PORT=\u003cbroker_server_port|5672\u003e\n\n# CELERY\nCELERY_TASK_DEFAULT_QUEUE=\u003cdefault_tasks_queue_name|my_stack_dq\u003e\nCELERY_TASK_DEFAULT_EXCHANGE=\u003cdefault_tasks_exchange_name|my_stack_ex\u003e\nCELERY_TASK_DEFAULT_ROUTING_KEY=\u003cdefault_tasks_routing_key|my_stack_rk\u003e\n```\n\n\n### Start the stack with Docker\nFrom root directory execute:\n```\ndocker-compose -f .container/docker-compose up -d\n```\n\n\n### Using RabbitMQ Manager tool\n[Start the stack with Docker](#start-the-stack-with-docker)\n\nVisit url http://localhost:15672/\n```\nusername: rabbitmq_admin\npassword: RabbitMqAdminPassWord\n```\n\n#### Create user for Celery Worker and Celery Beat\nLogin in [RabbitMQ Manager Tool](#using-rabbitmq-manager-tool)\n\nClick in **Admin** menu option\n\nClick in **Add a user**\n* Set as Username: *celery_user*\n* Set as Passowrd: *celery_password*\n* Set as Tags: *management*\n* Click button **Add User**\n\n#### Set permissions for created user\nLogin in [RabbitMQ Manager Tool](#using-rabbitmq-manager-tool)\n\nEdit the created user: *celery_user*\n\nIn **Permissions** section, set as *Virtual Host* the value: / \n\nClick the button **Set permission**  \n\n\n### Using Celery Browser\n[Start the stack with Docker](#start-the-stack-with-docker)\n\nVisit url http://localhost:8008/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrbrazzi%2Fmy_django_celery_stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrbrazzi%2Fmy_django_celery_stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrbrazzi%2Fmy_django_celery_stack/lists"}