feat: add rolling updates for production deployment (#175)

* feat: rolling update uvicorn workers

* script fixes
This commit is contained in:
Abhishek 2026-03-02 14:44:04 +05:30 committed by GitHub
parent ad6261333d
commit aed5a782fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 785 additions and 497 deletions

View file

@ -59,17 +59,15 @@ ENV PYTHONUNBUFFERED=1
# Copy application code
COPY ./api ./api
COPY ./scripts/start_services.sh ./scripts/start_services.sh
COPY ./scripts/start_services_dev.sh ./scripts/start_services_dev.sh
ENV PYTHONPATH=/app
# Disable file logging in Docker - logs go to stdout for docker logs
ENV LOG_TO_FILE=false
# Keep container alive by waiting for background processes
ENV WAIT_FOR_PROCESSES=true
# Expose the port FastAPI will run on
EXPOSE 8000
# Run the FastAPI app with uvicorn
CMD ["./scripts/start_services.sh"]
CMD ["./scripts/start_services_dev.sh"]