Change default port
This commit is contained in:
parent
a2fe4ad302
commit
1c49eb0464
|
@ -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"]
|
||||
|
|
|
@ -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 и это поддерживается
|
||||
|
|
Loading…
Reference in New Issue