Spaces:
Running
Running
Commit
·
be02e33
1
Parent(s):
3b4cdb1
Add command configuration for Gunicorn in docker-compose.yml
Browse files- docker-compose.yml +8 -0
docker-compose.yml
CHANGED
|
@@ -7,6 +7,14 @@ services:
|
|
| 7 |
- "8001:8001"
|
| 8 |
env_file:
|
| 9 |
- .env
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
logging:
|
| 11 |
driver: awslogs
|
| 12 |
options:
|
|
|
|
| 7 |
- "8001:8001"
|
| 8 |
env_file:
|
| 9 |
- .env
|
| 10 |
+
command: >
|
| 11 |
+
poetry run gunicorn
|
| 12 |
+
src.app:app
|
| 13 |
+
-k uvicorn.workers.UvicornWorker
|
| 14 |
+
-w 4
|
| 15 |
+
-b 0.0.0.0:8001
|
| 16 |
+
--timeout 600
|
| 17 |
+
--keep-alive 120
|
| 18 |
logging:
|
| 19 |
driver: awslogs
|
| 20 |
options:
|