From 8906f26c248361002222b4a3039e20d7901cae56 Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Fri, 28 Jun 2024 23:25:17 +0200 Subject: [PATCH] set log level of uvicorn --- Dockerfile | 2 +- docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 516a9ede..9a1f0ebd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,4 +28,4 @@ FROM base as production RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /project USER appuser -CMD ["uvicorn", "src.core.server:app", "--proxy-headers", "--host", "0.0.0.0"] \ No newline at end of file +CMD ["uvicorn", "src.core.server:app", "--proxy-headers", "--host", "0.0.0.0", "--log-level", "warning"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index b44c0270..5bbfac50 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -89,7 +89,7 @@ services: api_port: 5000 image: public_api # command: bash -c "apt update && apt install -y curl && sleep infinity" - command: uvicorn src.core.server:app --host 0.0.0.0 --reload --reload-include src/* + command: uvicorn src.core.server:app --host 0.0.0.0 --reload --reload-include src/* --log-level warning volumes: - ./src:/project/src ports: