update docker-compose.yml for uv

main
bluebamus 2025-11-10 14:35:03 +09:00
parent ec5b8df82e
commit 810c0cddb8
1 changed files with 6 additions and 7 deletions

View File

@ -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,11 +58,10 @@ 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 "
--logfile=/log/uvicorn/celery/worker-%n%I.log"
environment:
TZ: "Asia/Seoul"
restart: always
@ -84,12 +84,11 @@ 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 \
--logfile=/log/uvicorn/celerybeat/celerybeat.log "
--logfile=/log/uvicorn/celerybeat/celerybeat.log"
environment:
TZ: "Asia/Seoul"
restart: always