From 1c49eb0464f85ad49eba433cca957ee5b0b0b2cc Mon Sep 17 00:00:00 2001 From: itqop Date: Tue, 22 Oct 2024 23:54:00 +0300 Subject: [PATCH] Change default port --- Dockerfile | 4 ++-- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 86cb508..b3b6b71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,10 +21,10 @@ RUN pip install --no-cache-dir -r requirements.txt COPY app /app # Экспонирование порта -EXPOSE 8000 +EXPOSE 8002 # Установка Gunicorn RUN pip install gunicorn # Команда запуска приложения с использованием Gunicorn и Uvicorn workers -CMD ["gunicorn", "main:app", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000", "--workers", "4"] +CMD ["gunicorn", "main:app", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8002", "--workers", "4"] diff --git a/docker-compose.yml b/docker-compose.yml index da8435c..306951f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ services: build: . container_name: toxicity_assessment_api ports: - - "8000:8000" + - "8002:8002" environment: - MODEL_CHECKPOINT=cointegrated/rubert-tiny-toxicity - USE_CUDA=False # Установите True, если используете GPU и это поддерживается