From 810c0cddb8970b10c1b643caf55b44fe0c099cc1 Mon Sep 17 00:00:00 2001 From: bluebamus Date: Mon, 10 Nov 2025 14:35:03 +0900 Subject: [PATCH] update docker-compose.yml for uv --- .../web_service/nginx_uvicorn/docker-compose.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/compose/web_service/nginx_uvicorn/docker-compose.yml b/compose/web_service/nginx_uvicorn/docker-compose.yml index b881dcf..73664c8 100644 --- a/compose/web_service/nginx_uvicorn/docker-compose.yml +++ b/compose/web_service/nginx_uvicorn/docker-compose.yml @@ -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