代码拉取完成,页面将自动刷新
version: "3"
services:
django:
build:
context: .
dockerfile: ./Dockerfile
container_name: dvadmin-backend
networks:
- default
command: uwsgi --ini uwsgi.ini
environment:
- "DJANGO_SETTINGS_MODULE=application.settings.pro"
depends_on:
- celery_worker
- celery_beat
nginx:
image: nginx:latest
container_name: dvadmin-nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro # 将Nginx配置文件挂载到容器中
depends_on:
- django
- celery_worker
- celery_beat
# celery_worker:
# build: .
# command: celery multi start 4 -A application worker -l info --logfile=./logs/celerylog.log
# environment:
# - "DJANGO_SETTINGS_MODULE=application.settings.pro"
# depends_on:
# - django
#
# celery_beat:
# build: .
# command: celery -A application beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
# environment:
# - "DJANGO_SETTINGS_MODULE=application.settings.pro"
# depends_on:
# - django
networks:
default:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。