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 и это поддерживается