container name update

requirement update  remove string secret key add celeery admin
This commit is contained in:
Parsa Nazer
2025-03-10 22:46:41 +03:30
parent d6df8d9b8c
commit 1e692ca571
4 changed files with 50 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
DEFAULT_FROM_EMAIL = os.getenv("SECRET_KEY") DEFAULT_FROM_EMAIL = os.getenv("SECRET_KEY")
# Security and Debugging # Security and Debugging
SECRET_KEY = os.getenv("SECRET_KEY") or 'this is just for cron job dont judge me' SECRET_KEY = os.getenv("SECRET_KEY")
DEBUG = True DEBUG = True
BASE_DIR = Path(__file__).resolve().parent.parent.parent BASE_DIR = Path(__file__).resolve().parent.parent.parent
+41 -1
View File
@@ -260,7 +260,47 @@ UNFOLD = {
], ],
}, },
{
"title": _("تسک های سلری"),
"collapsible": True,
"items": [
{
"title": _("Clocked"),
"icon": "hourglass_bottom",
"link": reverse_lazy(
"admin:django_celery_beat_clockedschedule_changelist"
),
},
{
"title": _("Crontabs"),
"icon": "update",
"link": reverse_lazy(
"admin:django_celery_beat_crontabschedule_changelist"
),
},
{
"title": _("Intervals"),
"icon": "arrow_range",
"link": reverse_lazy(
"admin:django_celery_beat_intervalschedule_changelist"
),
},
{
"title": _("Periodic tasks"),
"icon": "task",
"link": reverse_lazy(
"admin:django_celery_beat_periodictask_changelist"
),
},
{
"title": _("Solar events"),
"icon": "event",
"link": reverse_lazy(
"admin:django_celery_beat_solarschedule_changelist"
),
},
],
},
], ],
}, },
+1
View File
@@ -98,6 +98,7 @@ pydantic==2.10.6
pydantic_core==2.27.2 pydantic_core==2.27.2
PyJWT==2.10.1 PyJWT==2.10.1
pyTelegramBotAPI==4.23.0 pyTelegramBotAPI==4.23.0
python-crontab==3.2.0
python-dateutil==2.9.0.post0 python-dateutil==2.9.0.post0
python-decouple==3.8 python-decouple==3.8
python-dotenv==1.0.1 python-dotenv==1.0.1
+7 -1
View File
@@ -1,5 +1,6 @@
services: services:
frontend: frontend:
container_name: shop_frontend
build: build:
context: ./frontend context: ./frontend
ports: ports:
@@ -10,6 +11,7 @@ services:
- default - default
django: django:
container_name: shop_backend
build: build:
context: ./backend context: ./backend
ports: ports:
@@ -24,7 +26,7 @@ services:
- default - default
db: db:
container_name: hshop_db container_name: shop_db
image: postgres:16 image: postgres:16
environment: environment:
POSTGRES_DB: hshop POSTGRES_DB: hshop
@@ -38,6 +40,7 @@ services:
- default - default
db-backup: db-backup:
container_name: shop_backup
build: build:
context: ./backup context: ./backup
depends_on: depends_on:
@@ -58,6 +61,7 @@ services:
redis: redis:
container_name: hshop_redis
image: redis:alpine image: redis:alpine
ports: ports:
- "6379:6379" - "6379:6379"
@@ -65,6 +69,7 @@ services:
- default - default
celery_worker: celery_worker:
container_name: shop_celery_worker
build: build:
context: ./backend context: ./backend
command: celery -A core worker --loglevel=info command: celery -A core worker --loglevel=info
@@ -79,6 +84,7 @@ services:
- default - default
celery_beat: celery_beat:
container_name: shop_celery_beat
build: build:
context: ./backend context: ./backend
command: celery -A core beat --loglevel=info command: celery -A core beat --loglevel=info