update docker-compose.yml for uv
parent
ec5b8df82e
commit
810c0cddb8
|
|
@ -39,7 +39,8 @@ services:
|
|||
- ../../../log:/log
|
||||
- ../../../config/app-server/uvicorn/:/uvicorn
|
||||
- ../../../script/logrotate/uvicorn/uvicorn:/etc/logrotate.d/uvicorn
|
||||
command: bash -c "poetry config virtualenvs.create false && poetry install --no-root --without test && gunicorn -c /uvicorn/gunicorn_uvicorn.conf.py"
|
||||
command: bash -c "uv pip install --system --no-cache . && gunicorn -c /uvicorn/gunicorn_uvicorn.conf.py"
|
||||
|
||||
environment:
|
||||
TZ: "Asia/Seoul"
|
||||
restart: always
|
||||
|
|
@ -57,8 +58,7 @@ services:
|
|||
- ../../../www:/www
|
||||
- ../../../log:/log
|
||||
- ../../../script/logrotate/uvicorn/celery/uvicorn-celery:/etc/logrotate.d/uvicorn-celery
|
||||
command: bash -c "poetry config virtualenvs.create false && \
|
||||
poetry install --no-root && \
|
||||
command: bash -c "uv pip install --system --no-cache . && \
|
||||
celery -A config worker \
|
||||
--loglevel=INFO \
|
||||
--logfile=/log/uvicorn/celery/worker-%n%I.log"
|
||||
|
|
@ -84,8 +84,7 @@ services:
|
|||
- ../../../www:/www
|
||||
- ../../../log:/log
|
||||
- ../../../script/logrotate/uvicorn/celerybeat/uvicorn-celerybeat:/etc/logrotate.d/uvicorn-celerybeat
|
||||
command: bash -c "poetry config virtualenvs.create false && \
|
||||
poetry install --no-root && \
|
||||
command: bash -c "uv pip install --system --no-cache . && \
|
||||
celery -A config beat \
|
||||
--loglevel=INFO \
|
||||
--scheduler django_celery_beat.schedulers:DatabaseScheduler \
|
||||
|
|
|
|||
Loading…
Reference in New Issue