From 1ee0712e25dd679b8554f0537a2f94800f3d0be0 Mon Sep 17 00:00:00 2001 From: komodo Date: Tue, 3 Feb 2026 02:15:50 +0000 Subject: [PATCH 1/3] [Komodo] fsecada01: Write Stack File: update ./compose.yaml --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 2a81298..4b50290 100644 --- a/compose.yaml +++ b/compose.yaml @@ -12,7 +12,7 @@ services: ports: - "0.0.0.0:${PORT:-5051}:${INTERNAL_PORT:-5051}" env_file: - - ./stack.env + - ./.env environment: - PORT=${INTERNAL_PORT:-5051} - SERVER_ENV=${SERVER_ENV:-prod} From 2f938de28d29858b18a4ae8da41cbfbe800921ac Mon Sep 17 00:00:00 2001 From: komodo Date: Tue, 3 Feb 2026 02:16:32 +0000 Subject: [PATCH 2/3] [Komodo] fsecada01: Write Stack File: update ./compose.yaml --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 4b50290..a342563 100644 --- a/compose.yaml +++ b/compose.yaml @@ -46,7 +46,7 @@ services: memory: ${CELERY_MEMORY_RESERVATION:-256mb} command: bash -c "/opt/pygentic_ai/docker/celery/start.sh" env_file: - - ./stack.env + - ./.env environment: - PORT=${CELERY_PORT:-5052} - SERVER_ENV=${SERVER_ENV:-prod} From abad0c4d115b8974cfa560b24d89c74ddf7df813 Mon Sep 17 00:00:00 2001 From: Francis Secada Date: Mon, 2 Feb 2026 21:28:55 -0500 Subject: [PATCH 3/3] fix: add default values for WORKERS, TIMEOUT, PORT in startup scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gunicorn crashes on container start when these env vars are missing from stack.env — -w receives no argument and exits immediately. Defaults now match .env.example values (WORKERS=4, TIMEOUT=120, PORT=5051), consistent with the bash default syntax already used in compose.yaml. Co-Authored-By: Claude Sonnet 4.5 --- bin/start.sh | 6 +++--- docker/pygentic_ai/python_start.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/start.sh b/bin/start.sh index a4308a9..ad4b78e 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -5,7 +5,7 @@ cd ${__dir}/../../ || exit source .venv/bin/activate cd src || exit # python -m backend.utils -gunicorn main:app -w ${WORKERS} -k uvicorn.workers.UvicornWorker \ ---timeout "${TIMEOUT}" \ +gunicorn main:app -w ${WORKERS:-4} -k uvicorn.workers.UvicornWorker \ +--timeout "${TIMEOUT:-120}" \ --forwarded-allow-ips "*" \ --b 0.0.0.0:"${PORT}" +-b 0.0.0.0:"${PORT:-5051}" diff --git a/docker/pygentic_ai/python_start.sh b/docker/pygentic_ai/python_start.sh index 62d098f..f085abc 100755 --- a/docker/pygentic_ai/python_start.sh +++ b/docker/pygentic_ai/python_start.sh @@ -4,7 +4,7 @@ __dir="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" cd ${__dir}/../.. || exit source .venv/bin/activate cd src || exit -gunicorn app:app -w ${WORKERS} -k uvicorn.workers.UvicornWorker \ ---timeout "${TIMEOUT}" \ +gunicorn app:app -w ${WORKERS:-4} -k uvicorn.workers.UvicornWorker \ +--timeout "${TIMEOUT:-120}" \ --forwarded-allow-ips "*" \ --b 0.0.0.0:"${PORT}" +-b 0.0.0.0:"${PORT:-5051}"