forked from erp-dev/erp
feat: split the docker compose config file
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user