1
0
forked from erp-dev/erp

feat: split the docker compose config file

This commit is contained in:
2025-12-22 16:17:28 +08:00
parent 6dbc4be6d8
commit 5b160ac393
16 changed files with 465 additions and 198274 deletions

View File

@@ -20,10 +20,16 @@ RUN pip install --upgrade pip \
COPY . /app
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
CMD ["python", "manage.py", "runserver", "0.0.0.0:8100"]
FROM base AS celery
CMD ["celery", "-A", "flower", "worker", "-l", "info", "--concurrency=2"]
# 默认产物runtime 镜像(用于 web / celery_worker / celery_beat 共用,通过 compose 覆盖 command
FROM base AS runtime
CMD ["uvicorn", "flower.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]