Spaces:
Sleeping
Sleeping
Update Dockerfile and docker-compose.yml to expose port 7860 and run Gunicorn with updated parameters
a5247bb
| services: | |
| parser: | |
| image: sifars.azurecr.io/bank-statement-scrubber/parser:${BUILD_BUILDNUMBER:-latest} | |
| pull_policy: always | |
| restart: unless-stopped | |
| ports: | |
| - "7860:7860" | |
| env_file: | |
| - .env | |
| command: > | |
| poetry run gunicorn | |
| src.app:app | |
| -k uvicorn.workers.UvicornWorker | |
| -w 4 | |
| -b 0.0.0.0:7860 | |
| --timeout 600 | |
| --keep-alive 120 | |
| logging: | |
| driver: awslogs | |
| options: | |
| awslogs-region: ${AWS_CLOUD_WATCH_LOGS_REGION} | |
| awslogs-group: ${AWS_CLOUD_WATCH_LOGS_GROUP_NAME} | |
| awslogs-stream: ${AWS_CLOUD_WATCH_LOGS_STREAM_NAME} | |
| awslogs-create-group: "true" | |