container name update
requirement update remove string secret key add celeery admin
This commit is contained in:
@@ -30,7 +30,7 @@ EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
|
||||
DEFAULT_FROM_EMAIL = os.getenv("SECRET_KEY")
|
||||
|
||||
# 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
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
||||
|
||||
|
||||
@@ -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"
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
|
||||
@@ -98,6 +98,7 @@ pydantic==2.10.6
|
||||
pydantic_core==2.27.2
|
||||
PyJWT==2.10.1
|
||||
pyTelegramBotAPI==4.23.0
|
||||
python-crontab==3.2.0
|
||||
python-dateutil==2.9.0.post0
|
||||
python-decouple==3.8
|
||||
python-dotenv==1.0.1
|
||||
|
||||
+7
-1
@@ -1,5 +1,6 @@
|
||||
services:
|
||||
frontend:
|
||||
container_name: shop_frontend
|
||||
build:
|
||||
context: ./frontend
|
||||
ports:
|
||||
@@ -10,6 +11,7 @@ services:
|
||||
- default
|
||||
|
||||
django:
|
||||
container_name: shop_backend
|
||||
build:
|
||||
context: ./backend
|
||||
ports:
|
||||
@@ -24,7 +26,7 @@ services:
|
||||
- default
|
||||
|
||||
db:
|
||||
container_name: hshop_db
|
||||
container_name: shop_db
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_DB: hshop
|
||||
@@ -38,6 +40,7 @@ services:
|
||||
- default
|
||||
|
||||
db-backup:
|
||||
container_name: shop_backup
|
||||
build:
|
||||
context: ./backup
|
||||
depends_on:
|
||||
@@ -58,6 +61,7 @@ services:
|
||||
|
||||
|
||||
redis:
|
||||
container_name: hshop_redis
|
||||
image: redis:alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
@@ -65,6 +69,7 @@ services:
|
||||
- default
|
||||
|
||||
celery_worker:
|
||||
container_name: shop_celery_worker
|
||||
build:
|
||||
context: ./backend
|
||||
command: celery -A core worker --loglevel=info
|
||||
@@ -79,6 +84,7 @@ services:
|
||||
- default
|
||||
|
||||
celery_beat:
|
||||
container_name: shop_celery_beat
|
||||
build:
|
||||
context: ./backend
|
||||
command: celery -A core beat --loglevel=info
|
||||
|
||||
Reference in New Issue
Block a user