remove cron.py file
cerley beat worker redis setting for cerley
This commit is contained in:
+40
-8
@@ -18,18 +18,13 @@ services:
|
||||
- db
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- /root/vol/shop/media:/app/media
|
||||
- /root/vol/shop/static:/app/static
|
||||
command:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"python manage.py migrate && python manage.py collectstatic --no-input && python manage.py crontab add && gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 3",
|
||||
]
|
||||
- media_data:/app/media
|
||||
- media_data:/app/static
|
||||
networks:
|
||||
- default
|
||||
|
||||
db:
|
||||
container_name: hshop_db
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_DB: hshop
|
||||
@@ -61,6 +56,43 @@ services:
|
||||
networks:
|
||||
- default
|
||||
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
networks:
|
||||
- default
|
||||
|
||||
celery_worker:
|
||||
build:
|
||||
context: ./backend
|
||||
command: celery -A core worker --loglevel=info
|
||||
depends_on:
|
||||
- django
|
||||
- redis
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
environment:
|
||||
- CELERY_BROKER_URL=redis://redis:6379/0
|
||||
networks:
|
||||
- default
|
||||
|
||||
celery_beat:
|
||||
build:
|
||||
context: ./backend
|
||||
command: celery -A core beat --loglevel=info
|
||||
depends_on:
|
||||
- django
|
||||
- redis
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
environment:
|
||||
- CELERY_BROKER_URL=redis://redis:6379/0
|
||||
networks:
|
||||
- default
|
||||
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
media_data:
|
||||
|
||||
Reference in New Issue
Block a user