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